This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Change Application Name and name of the .exe
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 19, 2008
08:10 AM
Change Application Name and name of the .exe
Hi Folks,
I am using Basic MSI project (IS 2009)
I have to pass the application Name during through command line argument.
How can i make it work?
Next i have to change the exe file name to same as the application name that i am going to pass through command line.
Please help me in getting in correct.
I am using Basic MSI project (IS 2009)
I have to pass the application Name during through command line argument.
How can i make it work?
Next i have to change the exe file name to same as the application name that i am going to pass through command line.
Please help me in getting in correct.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 04, 2008
06:12 PM
Please see the help topics "Setup.exe and Update.exe Command-Line Parameters" and "MsiExec.exe Command-Line Parameters".
A string can be passed like so:
C:\> Setup.exe /V"MYPROPERTY=\"HelloWorld.exe\""
C:\> msiexec /i\myinstallation.msi MYPROPERTY="HelloWorld.exe"
The new name, HelloWorld.exe, is placed into the property MYPROPERTY.
A custom action can take the name from the property and change the file name once it is on the file system (ie. late in the installation process).
Watch out for auto-repair issues: since most EXEs are marked as the key file of their respective components, simply renaming the file will cause the MSI engine to not find it and trigger the auto-repair to replace it. Perhaps make a renamed copy of the file.
A string can be passed like so:
C:\> Setup.exe /V"MYPROPERTY=\"HelloWorld.exe\""
C:\> msiexec /i
The new name, HelloWorld.exe, is placed into the property MYPROPERTY.
A custom action can take the name from the property and change the file name once it is on the file system (ie. late in the installation process).
Watch out for auto-repair issues: since most EXEs are marked as the key file of their respective components, simply renaming the file will cause the MSI engine to not find it and trigger the auto-repair to replace it. Perhaps make a renamed copy of the file.