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
- :
- Re: Need a little push to get started
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
‎Jan 11, 2011
01:09 PM
Need a little push to get started
Hello everyone,
I need a little help getting started. I was asked to basically make a silent install wrapper for an .exe with a command line parameter to be interpreted. Can someone graciously tell me how this is done – I’ve fooled around with it all morning and tried using the help but I’m not getting anywhere!
I started with a basic MSI project.
I need to run a .EXE to silently install a program. {Used ‘Custom Actions & Sequences’ to run this as the first step in ‘Installation’}
Then copy four files into the folder created by that .exe. {Use ‘Files & Folders’ right?}
Then copy a fifth .bat file into the same folder – but it will be one of 40 possible .bat files based upon the command line parameter. {I have no idea how to do this step}
Then run the .bat file. {I suspect a ‘custom action & sequence}
Then reboot. {Not sure how to call a restart after completion of the bat file}
I greatly appreciate your assistance. I'm hopelessly lost here!
I need a little help getting started. I was asked to basically make a silent install wrapper for an .exe with a command line parameter to be interpreted. Can someone graciously tell me how this is done – I’ve fooled around with it all morning and tried using the help but I’m not getting anywhere!
I started with a basic MSI project.
I need to run a .EXE to silently install a program. {Used ‘Custom Actions & Sequences’ to run this as the first step in ‘Installation’}
Then copy four files into the folder created by that .exe. {Use ‘Files & Folders’ right?}
Then copy a fifth .bat file into the same folder – but it will be one of 40 possible .bat files based upon the command line parameter. {I have no idea how to do this step}
Then run the .bat file. {I suspect a ‘custom action & sequence}
Then reboot. {Not sure how to call a restart after completion of the bat file}
I greatly appreciate your assistance. I'm hopelessly lost here!
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 12, 2011
03:10 AM
PistolPete wrote:
I started with a basic MSI project.
I need to run a .EXE to silently install a program. {Used ‘Custom Actions & Sequences’ to run this as the first step in ‘Installation’}
Hello,
You can take a look in "Redistributables", there you can add the program you want to install silently as a first step...
You have to create a prerequisite (Tools->prerequisite editor) and after you add your .EXE and then in the "Application to run -> specify the command line for the app" you add the command line: /quiet. Like that the install will be transparent to the user.
Take a look in here:
http://shieldmaster.wordpress.com/2009/04/26/tutorial-adding-setup-prerequisites-to-installshield-package/
PistolPete wrote:
Then copy four files into the folder created by that .exe. {Use ‘Files & Folders’ right?}
Yes, that's right...
After if you want to add more command lines you can do in "Media -> releases->Setup.exe -> MSI Command Line Arguments".
Hope it helps
Br3nda
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 12, 2011
07:55 AM
Is an MSI one of your requirements? It seems to me that what you are trying to do might be easier with an InstallScript project, especially since it doesn't appear that you need to use all the built-in Windows Installer features that manage upgrades, repairs and uninstalls.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 12, 2011
11:46 AM
KathyMorey wrote:
Is an MSI one of your requirements? It seems to me that what you are trying to do might be easier with an InstallScript project, especially since it doesn't appear that you need to use all the built-in Windows Installer features that manage upgrades, repairs and uninstalls.
You are correct - I think making an exe with everything packed into it would be best becuase I don't want my installer added to Add or Remove Programs like an MSI might be. I spent all day on this yesterday and I think today I will stop reading the 2700 page manual for making an MSI and see what I can find for making an InstallScript. I want to make one .exe that I pass a parameter to (e.g. Country=AR for Argentina) so it knows to run the .bat that is specific for Argentina after it installs the core product...
Thanks for pointing me in a direction! I honestly didn't know where to begin.. 🙂
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 12, 2011
11:51 AM
Br3nda wrote:
Hello,
You have to create a prerequisite (Tools->prerequisite editor) and after you add your .EXE and then in the "Application to run -> specify the command Hope it helps
Br3nda
Interesting idea! Put the real program in as a pre-req and then install the add-on with the normal routine! I thought the pre-req simply checked and failed if not present - I didn't consider that it would check, fail, remediate! 🙂