/build/static/layout/Breadcrumb_cap_w.png

CA MSI to launch setup within sub folder.

Having troubles launching an executable from a sub folder folder.

Situation is I have a folder "AdminImage" within this folder I have a setup file that installs an application suite.  I need to create a custom action outside the "adminImage" folder that will launch the setup.exe withing that folder! Sounds weird but if I remove the contents of the "adminimage" folder and try running the exe i get an error because the "Adminimage" folder no longer exists. So my solution is  CA.msi\AdminImage\setup.exe.  Tried to create a CA but it doesn't seem to fire off the setup file.  the MSI just installs but nothing happens.  Could it be the path thats the issue? how do you specify .\adminimage as a relative path?  tried putting this in the property table, does a CA read the property table? maybe not.

the MSI outside the "adminImage" folder just needs to be a dummy launcher, 

The reason I have to create this method is due to our 3rd party import tool for deploying software.  It will only import if you point to a exe or msi, it then takes all files and folders within that directory and not outside it

Could someone give me a detailed guide on how to go about this task.  I have WPS and installshield2012

Thanks.


0 Comments   [ + ] Show comments

Answers (4)

Posted by: piyushnasa 11 years ago
Red Belt
2

If you have WPS, create a WiseScript exe and that will easily launch the setup.exe inside the admin image folder. Since it is a script, you can use %INST%\AdminImage\Setup.exe to point to your adminimage folder and setup.exe

%INST% gives you the current directory in Wise Script.

If you really want to do it through MSI, then use this:

In the MSI, go to InstallExecuteSequence table and make sure you have ResolveSource Action there in the table. If not then you have to add it. It is an inbuilt action in MSI.

Then in the Custom Action you need to use the following path

[SOURCEDIR]AdminImage\Setup.exe

SOURCEDIR property only resolves when you have ResolveSource Action in the sequence.

 

Hope it helps you resolve the issue now..

 


Comments:
Posted by: mikester1980 11 years ago
Orange Belt
0

piyushnasa

Thanks for taking the time to reply.  I will have a look at both options today. Not really used WiseScript before but I will need to create an uninstall, so my thought was to create a 2nd custom action for removing with the MSI.

Once again, thanks for the info. :-)

 

Posted by: mikester1980 11 years ago
Orange Belt
0

Would anyone be so kind as to create and send me a dummy MSI with the above CA.  Been working on this for a few hours today and still this file will not launch. :( 

When setting up the new EXE CA i have 4 options. store in binary,path referencing a directory,installed with the product,path in properties value.  3 of these and still nothing.  What's the correct option for this scenario?

mikester1980@hotmail.com

 

Thanks

Posted by: mikester1980 11 years ago
Orange Belt
0

just creates a wise script like piyushnasa suggested and this does look to work great.  ill do a bit of searching for adding some kind of condition for install and removal. 

I'd still like to see what the process for creating a MSI to do the same if anyone could send. 

Thanks.

 
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