Page 1 of 2
Attaching and running EXE files with MSI
Posted: Tue Jan 13, 2009 1:39 pm
by theseira
Hello,
I am trying to create a simple MSI package that will allow me to run several smaller installer executable files. These installer EXE files have been and will be created using a separate installer utility, which by the way, does not have the ability to create MSI packages. So my goal is to use InstallAware to create a MSI package that includes all our installer files and to run each EXE file with some predefined parameters. Seems like a really straight forward process but it appears it is not that simple; not for me at least.
Hope my explanation makes sense.
Thanks.
Posted: Tue Jan 13, 2009 3:22 pm
by CandiceJones
Its very simple! In the visual IDE, add each EXE to your setup under the Creatives view. then switch to the Run Programs view and run each of the added files from underneath $SUPPORTDIR$ at any time you like in your setup!
All visually possible, and you can switch to the MSIcode view if you want to customize this even further. The code will be automatically inserted for you in the MSIcode view and you'll be able to move it around anywhere you like

Posted: Tue Jan 13, 2009 4:09 pm
by theseira
Please excuse my ignorance but where exactly in the IDE is the 'Creatives' view again? I read the manual and it does reference the 'Creatives' but it does not provide new users with the exact location of some of the visual components.
Posted: Tue Jan 13, 2009 4:46 pm
by theseira
I think I got it. Creatives' are located in the Design view of the IDE. So the exact navigation would be, Design view > User Interface > Creatives.
Posted: Tue Jan 13, 2009 5:30 pm
by theseira
I added my EXE files to the 'Creatives' menu and created new 'Run Programs' item. When I click the OK button, InstallAware poips up a dialog box asking me to make sure the 'Apply Install' command is added to my script. What script?
Posted: Tue Jan 13, 2009 5:38 pm
by theseira
I figured it out but it is not intuitive.
Posted: Tue Jan 13, 2009 5:50 pm
by MichaelNesmith
Like the IDE says, if you create new projects using the Quick Start wizard or one of the templates, the Apply Install command will be in the proper place.
I'm glad you were able to figure it out all on your own!
Posted: Wed Jan 14, 2009 7:07 pm
by theseira
I am pretty close to getting my test project completed before I decide to purhcase one of the InstallAware versions. The problem I am experiecning right now is, I cannot register the OCX file I compressed in the MSI package. In searching a solution in your forum, I came across this post.
http://www.installaware.com/forum/viewt ... gister+ocx
I wanted to confirm if I require users to have Administrative priviliges to install my MSI by selecting the check box option, can I register my OCX component via the MSIcode section of InstallAware?
For example,
Register Library $TARGETDIR$\\myplugin.ocx
If so, does the above code go into the 'Process (Un) Installation [...] of the MSIcode section of InstallAware?
Posted: Wed Jan 14, 2009 7:36 pm
by CandiceJones
Yes, you will need admin rights. And the right place for that code is right after Apply Install.
Posted: Thu Jan 15, 2009 1:42 am
by theseira
Where is 'Apply Install'? In the MSIcode section?
Posted: Thu Jan 15, 2009 9:54 am
by MichaelNesmith
Yes.
Posted: Thu Jan 15, 2009 11:00 am
by theseira
I am looking in the MSIcode section, where a user would enter scripts, and do not see any reference to 'Apply Install'. I may not be looking in the right place, because the only text I see in the section of the IDE are,
Check Application Requirements [...]
Check/Install Application Pre-Requisites [...]
Define Global Setup [...]
Setup User Interview [...]
Process (Un) Installation [...]
Finish Setup [...]
Any clues?
Posted: Thu Jan 15, 2009 4:26 pm
by MichaelNesmith
Ever heard of code folding? You can expand these regions.
Posted: Thu Jan 15, 2009 5:55 pm
by theseira
Got it. Thanks.
Posted: Thu Jan 15, 2009 6:51 pm
by theseira
One more question. When I clicked on Build, IA is copying a ton of files from the Common Files folder and runtime files from teh InstallAware folder and placing them in the build folder. Can I stop it from behaving this way?