MSM Custom Action: run an .exe -> Bad path - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

cmbourqu
Posts: 17
Joined: Tue Dec 18, 2007 9:19 pm

MSM Custom Action: run an .exe -> Bad path

I build an .MSM. I use a Custom Action to run a .EXE.
I install a Data folder in program Files (for example C:\Program Files\Driver\Data). I install also a setup.exe file in the same place (for example C:\Program Files\Driver\setup.exe).

My setup.exe is used to install stuff contained in the C:\Program Files\Driver\Data.
When the setup.exe is executed, the system path C:\WINNT\system32 instead the C:\Program Files\Driver…

What is the problem please?

Thanks a lot!
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I'm not sure I understand what you mean. Can you please give more details about the problem you are encountering?
My setup.exe is used to install stuff contained in the C:\Program Files\Driver\Data.
Can you please give more details about this? Are you installing files that will be used to launch another installation?
When the setup.exe is executed, the system path C:\WINNT\system32 instead the C:\Program Files\Driver…
What do you mean by "system path"? Can you please give more details about this?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cmbourqu
Posts: 17
Joined: Tue Dec 18, 2007 9:19 pm

Hi!
Thanks for you reply.
I built a .MSM with a folder named Data to install and a setup.exe file to install. The execution of the .MSM install the Data folder and the .setup.exe at the good place: the place what I what.

But, I using a Custom Actions to call my setup.exe file. This .exe should install files contained in the folder Data.

My point is, the setup.exe is run BUT it is run on C:\WINNT\system32...
I was thinking that my setup.exe will be call on the same path then Data (path where is installed by the .MSM before the execution of the Custom Actions.

If I resume: if the .MSM install the Data folder and th setup.exe file on c:\program files\MyExample, I would like that the setup.exe run on this path. The fact is that the setup.exe do operations like:

"system ("copy data\\MB3000AcquisitionServer\\App.ico C:\\MB3000Application\\MB3000AcquisitionServer");"

Then, setup.exe should be on the same place then Data folder.
Is it more clear? I hope so!

Thanks a lot!
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please try using an "EXE with Working Dir" custom action to launch your "setup.exe" file. For this type of custom action you can set the working directory to the folder you need.

You can read more about custom actions here:
http://www.advancedinstaller.com/user-g ... -page.html
http://www.advancedinstaller.com/user-g ... e-with-dir

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”