I´ve got an irretating problem..
This application is installed on a server. You need to run this application with Adminrights.
I have made a shortcut to this app that looks something like this %windir%\system32\runas.exe /Admin \\servername\servershare\program.exe

This shortcut works fine if i distribute it from a bat or cmd file. The company were I work wants everything as MSI. In wWise the shortcut looks OK
without the " " but when I distribute it as an MSI it looks like "%windir%\system32\runas.exe /Admin \\servername\servershare\program.exe".
0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


- Are there any spaces in whatever names are resolved from 'servername', 'servershare' or 'program.exe'?
- Have you tried altering the command line to explicitly include quotes:

%windir%\system32\runas.exe "\\servername\servershare\program.exe"

- I'm not familiar with the '/Admin' switch for RunAs. Neither, it would appear, is Microsoft http://technet.microsoft.com/en-us/library/bb490994.aspx
Answered 03/27/2009 by: VBScab
Red Belt

Please log in to comment
Can´t believe that I wrote "/Admin" instead of "/Smartcard"...I must be tired.

When i added %windir%\system32\runas.exe /Smartcard "\\servername\servershare\program.exe"

the installation replied with "%windir%\system32\runas.exe /Smartcard "\\servername\servershare\program.exe""
Answered 03/27/2009 by: Nixlas
Senior Yellow Belt

Please log in to comment
Are you specifying the whole string as the Target column for the shortcut or do you have /Smartcard "\\servername\servershare\program.exe" specified in the Arguments column?
If not the latter; try that first.
Answered 03/31/2009 by: AngelD
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity