[Solved] Best time to change a file from Start Menu ? - 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!

alavoler
Posts: 45
Joined: Thu Mar 12, 2009 4:29 pm
Location: France
Contact: Website

[Solved] Best time to change a file from Start Menu ?

Hi,

I have an HTML documentation file that I edit with some of the values chosen by the user (specifically the user selects a port number for his site, In custom action. Net discover the name of the machine, and I write dynamically in the doc Start menu http://Hostname:Port)

What is best practice?
Before the copy in the startup menu? (if yes, which directory?)
After copying the Start menu? (I must discover. Net directory doc & settings)

thanks
Last edited by alavoler on Wed May 20, 2009 3:13 pm, edited 1 time in total.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: [StartMenu] Best time to change a file from Start Menu ?

Hi,

Unfortunately Advanced Installer cannot edit HTML files, so the custom action can run only after the file is installed in the Start menu. You can schedule it under "InstallExecuteSequence" -> "Install" as "Deferred".

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
alavoler
Posts: 45
Joined: Thu Mar 12, 2009 4:29 pm
Location: France
Contact: Website

Re: [StartMenu] Best time to change a file from Start Menu ?

Thanks Cosmin,

I thought of course do in .Net but:
Is it possible to easily retrieve the installation directory of the Start Menu? (to send to the custom action)

for example: [START_MENU_FOLDER_PROP] ?? :)
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: [StartMenu] Best time to change a file from Start Menu ?

Hi,

The Start menu path is stored in the "StartMenuFolder" property. This property can be passed as a parameter to a .NET Installer Class Action.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
alavoler
Posts: 45
Joined: Thu Mar 12, 2009 4:29 pm
Location: France
Contact: Website

Re: [StartMenu] Best time to change a file from Start Menu ?

Perfect !

have good day

Return to “Common Problems”