run file from cd root - 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!

nnnswordfish
Posts: 11
Joined: Wed Jan 20, 2010 2:12 am

run file from cd root

hy again :) i want to run readme file after installation will finishd and it located on my cd root directory how to do that?the file is not part of installation please help thanks
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: run file from cd root

Hello,

Use the Launch File or Open URL custom action to open the README file.
Check out our guide on Execute custom action when a button is pressed guide. You will need to condition the execution of that custom action using the VIEWREADME property which is binded to the corresponding checkbox on the ExitDlg dialog.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
nnnswordfish
Posts: 11
Joined: Wed Jan 20, 2010 2:12 am

Re: run file from cd root

GabrielBarbu wrote:Hello,

Use the Launch File or Open URL custom action to open the README file.
Check out our guide on Execute custom action when a button is pressed guide. You will need to condition the execution of that custom action using the VIEWREADME property which is binded to the corresponding checkbox on the ExitDlg dialog.

Regards,
Gabriel
Thank u very much for replay i will try that today and onother qwestion : i have run.exe File on my cd root(it not part of installation and when it executed after small dialog box it runs another executable file wich will be on root cd/Setup1/Setup1.exe All this files and folders are not part of installation) and i want to execute it when installation is done but i dont want to do that with button press i want to run it automaticly when instalation will be done before pressing finish button how i shoud do that ?thanks
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: run file from cd root

Hello,

Simply place your custom action after the InstallFinalize standard action. This will ensure that your custom action will be executed when your install finishes.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
nnnswordfish
Posts: 11
Joined: Wed Jan 20, 2010 2:12 am

Re: run file from cd root

GabrielBarbu wrote:Hello,

Simply place your custom action after the InstallFinalize standard action. This will ensure that your custom action will be executed when your install finishes.

Regards,
Gabriel
thanks for help again :) when i am creating Launch File or Open URL custom action and i am selecting my run.exe file to execute after that when i creating instalation package its goes inside of instalation package and when it runs it couldnot find other files to start - wich are on root cd/Setup1/Setup1.exe it says unable lunch setup1.exe file not found,it happening because run.exe file is executed from temp directory and not from cd root and i dont know how to fix it

Here is my files on Cd:

1)Setup.exe located on the root of cd(Created by advansed installerr) and it runs first time with autoplay,after that when it extracts all files to hard drive and every thing goes ok it starting run.exe but it starting it not from root location of cd it starting it from some temporary directory and after that run.exe cant find root cd/Setup1/Setup1.exe file to execut.

2)run.exe located on the root of cd as well(when it executed it shows smaal dialog box and after that it starting root cd/Setup1/Setup1.exe )this file starting after setup.exe finishd setup files.

3)root cd/Setup1/Setup1.exe its a instalation file wich starting enother software instalation and it not created with advansed installer it just Winrar setup file).

So how to tell setup.exe file that run.exe file is located near to it on same directory where setup.exe is?And how to make it run run.exe directly from cd root not from any other locations?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: run file from cd root

Hello,

You can use a Launch File or Open URL custom action to launch run.exe.
The path to run.exe would look something like

Code: Select all

[SOURCEDIR]run.exe
Place that in the Launch File or Open URL custom action's Command Line field. This will launch run.exe straight from the installation media.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
nnnswordfish
Posts: 11
Joined: Wed Jan 20, 2010 2:12 am

Re: run file from cd root

Thank u thank u and thank u that should be workd!thank u very much i will test it when i will get back home thank u very much again :D

Return to “Common Problems”