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

Comments

Please log in to comment

Community Chosen Answer

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..

 

Answered 08/30/2012 by: piyushnasa
Red Belt

  • This content is currently hidden from public view.
    Reason: Removed by user request
    For more information, visit our FAQ's.
  • This content is currently hidden from public view.
    Reason: Removed by user request
    For more information, visit our FAQ's.
Please log in to comment

Answers

This content is currently hidden from public view.
Reason: Removed by user request
For more information, visit our FAQ's.

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. :-)

 

Answered 08/31/2012 by: mikester1980
Orange Belt

Please log in to comment
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

Answered 08/31/2012 by: mikester1980
Orange Belt

Please log in to comment
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.

Answered 08/31/2012 by: mikester1980
Orange Belt

Please log in to comment
Answer this question or Comment on this question for clarity