+ Post New Thread
Results 1 to 9 of 9
Enterprise Software Thread, Deploying appv client via command line.... in Technical; Someone help me out here as i appear to be failing, the pre-reqs install, the client installs but when i ...
  1. #1
    mrbios's Avatar
    Join Date
    Jun 2007
    Location
    Stroud, Gloucestershire
    Posts
    2,541
    Thank Post
    362
    Thanked 263 Times in 215 Posts
    Rep Power
    100

    Deploying appv client via command line....

    Someone help me out here as i appear to be failing, the pre-reqs install, the client installs but when i login and attempt to load the client it gives me an error about connecting to localhost and attempting to enter the "published servers" gives an MMC error, here's my batch file:
    Code:
    IF EXIST "%programfiles(x86)%" (GOTO 64-Bit) ELSE (GOTO 32-Bit)
    
    :32-Bit
    ECHO 32-Bit O/S detected
    msiexec.exe /i "\\fs1\programinstaller\appv client deployment\AppVClient\setup32.msi" SWICACHESIZE="6144" SWIPUBSVRDISPLAY="AppMgmtServ" SWIPUBSVRTYPE="RTSP" SWIPUBSVRHOST="AppMgmtServ" SWIPUBSVRPORT="554" SWIPUBSVRPATH="/" SWIPUBSVRREFRESH="on" SWIGLOBALDATA="C:\ProgramData\Microsoft\Application Virtualization Client\" SWIUSERDATA="%AppData%" SWIFSDRIVE="Q" /q
    GOTO END
    
    :64-Bit
    ECHO 64-Bit O/S detected
    msiexec.exe /i "\\fs1\programinstaller\appv client deployment\AppVClient\setup64.msi" SWICACHESIZE="6144" SWIPUBSVRDISPLAY="AppMgmtServ" SWIPUBSVRTYPE="RTSP" SWIPUBSVRHOST="AppMgmtServ" SWIPUBSVRPORT="554" SWIPUBSVRPATH="/" SWIPUBSVRREFRESH="on" SWIGLOBALDATA="C:\ProgramData\Microsoft\Application Virtualization Client\" SWIUSERDATA="%AppData%" SWIFSDRIVE="Q" /q
    GOTO END
    Now first of all i should probably mention all the above are generally the "default" settings of the client, they worked and appear to work ok so i've just left it at that, but if anyone can suggest any more suitable settings then feel free, but first of all why is that not working? I've coped those parameters from the microsoft site and just changed the values.

    EDIT: Just tried the ^%HOMEDRIVE^% bit from microsofts default parameteres as the SWIUSERDATA bit and tried removing the SWIPUBSVRPATH from the paramaters altogether as they say that's only required for HTTP but still no joy, this is mildly frustrating.
    Last edited by mrbios; 5th July 2012 at 12:32 PM.

  2. #2


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,065
    Thank Post
    232
    Thanked 2,717 Times in 2,005 Posts
    Rep Power
    795
    The percent signs for AppData in SWIUSERDATA haven't been escaped using the ^ character i.e.

    Code:
    SWIUSERDATA="%AppData%"
    should be...

    Code:
    SWIUSERDATA="^%AppData^%"
    Source: Microsoft

    Edit. Too slow.
    Last edited by Arthur; 5th July 2012 at 12:35 PM.

  3. #3
    mrbios's Avatar
    Join Date
    Jun 2007
    Location
    Stroud, Gloucestershire
    Posts
    2,541
    Thank Post
    362
    Thanked 263 Times in 215 Posts
    Rep Power
    100
    Tried it both ways just incase but no luck

  4. #4


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,065
    Thank Post
    232
    Thanked 2,717 Times in 2,005 Posts
    Rep Power
    795
    Have you tried setting the Windows Installer properties using an MST instead of via the command line?

    Probably won't make much of a different though.

  5. #5
    mrbios's Avatar
    Join Date
    Jun 2007
    Location
    Stroud, Gloucestershire
    Posts
    2,541
    Thank Post
    362
    Thanked 263 Times in 215 Posts
    Rep Power
    100
    I "might" have just found what I've been doing wrong, i forgot about this:
    msiexec /i dw20shared.msi APPGUID={valuefromtable} REBOOT=Suppress REINSTALL=ALL REINSTALLMODE=vomus

    Where the GUID has to be the GUID of the application specific to 64 or 32bit, I've been trying to use the 64bit GUID on 32bit machines, could this cause that issue? Sorting it now though as it's relatively easy....one question though....

    Does it have to be like this:
    msiexec /i dw20shared.msi APPGUID={DB9F70CD-29BC-480B-8BA2-C9C2232C4553} REBOOT=Suppress REINSTALL=ALL REINSTALLMODE=vomus
    OR like this:
    msiexec /i dw20shared.msi APPGUID=DB9F70CD-29BC-480B-8BA2-C9C2232C4553 REBOOT=Suppress REINSTALL=ALL REINSTALLMODE=vomus

    ?

  6. #6
    mrbios's Avatar
    Join Date
    Jun 2007
    Location
    Stroud, Gloucestershire
    Posts
    2,541
    Thank Post
    362
    Thanked 263 Times in 215 Posts
    Rep Power
    100
    This is what my full startup script (i wonder if this is part of my problem, that it's a startup script) looks like:
    Code:
    msiexec /i "\\fs1\programinstaller\appv client deployment\vcredist2005_x86\vcredist.msi" /quiet
    msiexec /i "\\fs1\programinstaller\appv client deployment\vcredist2008_x86\vc_red.msi" /quiet
    
    IF EXIST "%programfiles(x86)%" (GOTO 64-Bit) ELSE (GOTO 32-Bit)
    
    :32-Bit
    ECHO 32-Bit O/S detected
    msiexec.exe /i "\\fs1\programinstaller\appv client deployment\AppErrReport\dw20shared32.msi" APPGUID={DB9F70CD-29BC-480B-8BA2-C9C2232C4553} REBOOT=Suppress REINSTALL=ALL REINSTALLMODE=vomus /q
    msiexec.exe /i "\\fs1\programinstaller\appv client deployment\AppVClient\setup32.msi" SWICACHESIZE="6144" SWIPUBSVRDISPLAY="AppMgmtServ" SWIPUBSVRTYPE="RTSP" SWIPUBSVRHOST="AppMgmtServ" SWIPUBSVRPORT="554" SWIPUBSVRREFRESH="on" SWIGLOBALDATA="C:\ProgramData\Microsoft\Application Virtualization Client\" SWIUSERDATA="^%HomeDrive^%\Windows\Application Virtualization Client" SWIFSDRIVE="Q" /q
    GOTO END
    
    :64-Bit
    ECHO 64-Bit O/S detected
    msiexec.exe /i "\\fs1\programinstaller\appv client deployment\AppErrReport\dw20shared64.msi" APPGUID={342C9BB8-65A0-46DE-AB7A-8031E151AF69} REBOOT=Suppress REINSTALL=ALL REINSTALLMODE=vomus /q
    msiexec.exe /i "\\fs1\programinstaller\appv client deployment\AppVClient\setup64.msi" SWICACHESIZE="6144" SWIPUBSVRDISPLAY="AppMgmtServ" SWIPUBSVRTYPE="RTSP" SWIPUBSVRHOST="AppMgmtServ" SWIPUBSVRPORT="554" SWIPUBSVRREFRESH="on" SWIGLOBALDATA="C:\ProgramData\Microsoft\Application Virtualization Client\" SWIUSERDATA="^%HomeDrive^%\Windows\Application Virtualization Client" SWIFSDRIVE="Q" /q
    GOTO END
     
    :END

  7. #7
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,987
    Thank Post
    120
    Thanked 283 Times in 261 Posts
    Rep Power
    107
    I had previously just installed the separate components through regular GPO software install and use a custom ADM/ADMX file to control the settings, this worked fine. Now I just use SCCM and set the dependancies to get the other items installed first. Do you really need to use a start up script?

  8. #8
    mrbios's Avatar
    Join Date
    Jun 2007
    Location
    Stroud, Gloucestershire
    Posts
    2,541
    Thank Post
    362
    Thanked 263 Times in 215 Posts
    Rep Power
    100
    Quote Originally Posted by ChrisH View Post
    I had previously just installed the separate components through regular GPO software install and use a custom ADM/ADMX file to control the settings, this worked fine. Now I just use SCCM and set the dependancies to get the other items installed first. Do you really need to use a start up script?
    I don't need to, it just felt like the quickest method to get it deployed.

    Do you still have the ADM/ADMX for the settings? Admittedly though apart from not taking the parameters i've set it's working and installing correctly, just frustrating that i've hit a wall on the final hurdle as it were.

  9. #9
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,987
    Thank Post
    120
    Thanked 283 Times in 261 Posts
    Rep Power
    107
    You can get them from here: Downloads | Login Tools | Login Consultants you have to register but it's worth it. There is few other free APP-V based tools worth downloading as well like ACDC. I use it all the time from a share to fix issues it doesn't need to be installed.

  10. 2 Thanks to ChrisH:

    mrbios (5th July 2012)

SHARE:
+ Post New Thread

Similar Threads

  1. ems launch via command line with variable
    By zbjsy in forum Windows Server 2008 R2
    Replies: 10
    Last Post: 2nd April 2012, 05:15 PM
  2. [Fog] Deploy Fog Client via GPO
    By JJonas in forum O/S Deployment
    Replies: 1
    Last Post: 17th June 2010, 04:27 PM
  3. folder not visible except via command line
    By rocknrollstar in forum Windows
    Replies: 13
    Last Post: 13th June 2009, 08:24 PM
  4. Configuring Netgear WG302 via command line
    By randle in forum Hardware
    Replies: 8
    Last Post: 17th September 2008, 01:01 PM
  5. Command line tool for share permissions
    By NetworkGeezer in forum Windows
    Replies: 8
    Last Post: 19th June 2006, 06:32 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •