Maintenance mode - 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!

srini
Posts: 81
Joined: Mon Sep 14, 2009 4:22 pm

Maintenance mode

Hello,

I want to generate a package, which after installed and when run again should perform everything that was done on the first time installation.

This is my case:
I collect several information from the user; based on them I setup the machine.
So, after installation, if the user wishes to change those options, he/she should be able run the same installer and be given the same options when it was done the first time; this time the user selects a different option and the machine is altered accordingly.
For example:
  • I provide the user an option to type in a name for the machine the installer being run on. The user types "Computer1".
    I provide the user an option to select between static and DHCP networking option. User selects DHCP.
    And after some time, the user wants to change the computer name to "Computer11" and the network option to be static. I wish the user should be able to run the same installer to perform this modification. But this time I wish and option to make no changes/not to the files and folders provided by the installer.


How can I do this?

If I am not clear on expressing, please let me know.

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

Re: Maintenance mode

Hi,

You can try using the dialog editor to add maintenance dialogs which perform the actions you need. Since the options you want to set are not very related to installed resources, you can try using some custom actions to handle the changes.

If these options need to affect the installation structure (add/remove features or components), can you please give me more details about the changes you need to make?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
srini
Posts: 81
Joined: Mon Sep 14, 2009 4:22 pm

Re: Maintenance mode

Hi Cosmin,

As in my example,
  • I have a dialog box that contains an Edit Box in which the user enters the Hostname.
    I have a check box 'Use DHCP' for networking. If not selected it will enable 2 edit boxes - one will get the IP address and the other will get the NETMASK.
That is all the UI part. In the CustomActions->InstallExecuteSequence->Install I call 2 vbscripts:
  • First to set the host name with the name passed as custom action data and
    Second to configure the network with the IP Address and NETMASK passed as custom action data.
During the maintenance mode will these scripts work?

I do not want to duplicate what I have done in Dialogs->First Time Install in Dialogs->Maintenance.

If this is still not clear please let me know.

Thanks

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

Re: Maintenance mode

Hi,
During the maintenance mode will these scripts work?
Yes. Just make sure that their conditions are true during maintenance. For example, you can use the condition:

Code: Select all

REMOVE <> ALL
I do not want to duplicate what I have done in Dialogs->First Time Install in Dialogs->Maintenance.
In the "Dialogs" page you can simply drag the first install dialogs in maintenance while pressing the SHIFT key. This way the dialogs will be copied.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
srini
Posts: 81
Joined: Mon Sep 14, 2009 4:22 pm

Re: Maintenance mode

Hi Cosmin,

Thanks for the reply. I have not tried this and it will be a while before I proceed. I will let you know later about this.

Srini

Return to “Common Problems”