/build/static/layout/Breadcrumb_cap_w.png

Wise adds "" to a shortcut

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

Answers (3)

Posted by: anonymous_9363 15 years ago
Red Belt
0
- 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
Posted by: Nixlas 15 years ago
Senior Yellow Belt
0
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""
Posted by: AngelD 15 years ago
Red Belt
0
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ