Runexe.exe
Customers keep asking us how to set things up when they have two versions of an application, each in a different VSP, that both have to be installed to the same location. This article discusses the problem and outlines a solution using a simple program created with WiseScript that we call "runexe.exe".
All runexe.exe does is take the program you specify and launch it. For example:
runexe C:\Program Files\AppX\main.exe
If you are interested, or want to fiddle with it, the script looks like this:
item: Set Variable Variable=CMDLINE2 Value=%CMDLINE% end item: Execute Program Pathname=%CMDLINE2% end
The download also includes a sample shortcut file.
For more information, see this article.
| License: | AJSL By clicking the download link below, you agree to the terms and conditions in the Altiris Juice Software License |
| Support: | User-contributed tools on the Juice are not supported by Altiris Technical Support. If you have questions about a tool, please communicate directly with the author by visiting their profile page and clicking the 'contact' tab. |
Passing Switch using runexe.exe
I had a little trouble passing the SafeMode switch when running runexe with Firefox. I took your code and added a swith (/GS: ) so that any switches could be executed as arguments. Didn't know if anyone else had this trouble.
So I now have a SafeMode shortcuts point like this: runexe.exe "firefox.exe" /GS: -safe-mode
-------
item: Set Variable
Variable=CMDLINE2
Value=%CMDLINE%
end
item: Parse String
Source=%CMDLINE2%
Pattern=/GS:
Variable1=CMDEXE
Variable2=CMDVAR
Flags=00000001
end
item: Execute Program
Pathname=%CMDEXE%
Command Line=%CMDVAR%
end
-----
Would you like to reply?
Login or Register to post your comment.