Open folder after install - 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!

splay
Posts: 58
Joined: Tue May 15, 2007 6:09 pm

Open folder after install

Hi Guys,


I want to simply open a folder after the install.

The folder contains pdf help files.

Cant find anything here to show me how to do it.


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

Hi,

You can do this by using a "Launch File or open URL" custom action which is scheduled under "InstallExecuteSequence" -> "InstallFinalize" (you can access the "InstallFinalize" standard action by using the "Show Standard Action" button on the toolbar).

The custom action will have the command line "C:\Test" where Test is the folder you want to open (note that you can also use properties, for example: "[APPDIR]" for the application folder).

Please make sure that the custom action has the condtion Not Installed set in the "Expression" field in the "Execution Condition" section, in order to be executed only during the first install.

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

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
splay
Posts: 58
Joined: Tue May 15, 2007 6:09 pm

Spaces

Thanks Cosmin


have tried that but it gives an error saying file not found.

The problem is my APPDIR has a space in it ie. "Program Files"

Some things dont look right, I added the InstallFinalize custom action and it defaults to:
  • Source Path <viewer.exe>
    Source Type Executeable
    Command Line [APPDIR] ( My setting )

Should the viewer.exe be there?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I'm sorry, I now realize that I wasn't very explicit. You need to use quotation marks (") for the paths in the command line, therefore the actual command line parameter is:

Code: Select all

"[APPDIR]"
instead of [APPDIR]

Let me know if the problem persists.

Regards,
Cosmin
Last edited by Cosmin on Fri Oct 19, 2007 10:44 am, edited 1 time in total.
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
splay
Posts: 58
Joined: Tue May 15, 2007 6:09 pm

Cosmin, thats great, well done.

Return to “Common Problems”