Cannot edit/delete existing dialog controls, more in comment - 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!

fali
Posts: 22
Joined: Thu Mar 14, 2013 9:28 pm

Cannot edit/delete existing dialog controls, more in comment

Hello,

This is my first time using the product and I cannot figure out how to do some simple things, so please bear with me!

For my work, I have been tasked with adding some extra options to our program installer. Here is where I ran into some problems. We have a "view readme" control (checkbox) that I tried to rename, but was not able to (we do not use this option so I figured I would just re-purpose it). So I figured I would just delete the control and make a new one... but I cannot do this either. Any idea why this might be the case?

My other issue is that the dialog (it is the exit dialog) needs to have three separate controls to launch the program, the tray monitor, and the system service independently of each other. When I try to set the "finish action" for one these controls, it automatically changes it for all the controls. How can I fix this so that the three controls have unique finish actions?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Cannot edit/delete existing dialog controls, more in com

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.
For my work, I have been tasked with adding some extra options to our program installer. Here is where I ran into some problems. We have a "view readme" control (checkbox) that I tried to rename, but was not able to (we do not use this option so I figured I would just re-purpose it). So I figured I would just delete the control and make a new one... but I cannot do this either. Any idea why this might be the case?
If you are referring to our "VIEWREADME" predefined check box control from " ExitDialog" page and you want to change its display text, then you can edit the "Text" field of its right side static text control.
My other issue is that the dialog (it is the exit dialog) needs to have three separate controls to launch the program, the tray monitor, and the system service independently of each other. When I try to set the "finish action" for one these controls, it automatically changes it for all the controls. How can I fix this so that the three controls have unique finish actions?
Please keep in mind this is the normal behavior. The "Finish Actions" tab is not specific to a certain control, it is specific only to "ExitDialog" dialog. However, in order to achieve what you want you can proceed like this:
- Go to "Custom Actions" page and add three custom actions without sequence which will launch your installed applications (i.e. program, tray, service).
- Go to "Dialogs" page and on "ExitDialog" add three check box controls like this:
  • Property Name: PROP1
    Value: program
    Text: Run program

    Property Name: PROP2
    Value: tray
    Text: Run tray

    Property Name: PROP3
    Value: service
    Text: Run service
- On [Finish] button add three published events like this:
  • Event: Execute custom action
    Argument: LaunchProgram
    Condition: PROP1

    Event: Execute custom action
    Argument: LaunchTray
    Condition: PROP2

    Event: Execute custom action
    Argument: LaunchService
    Condition: PROP3
- Build and run your project.

Also, you can take a look on our "Execute custom action on button push" article which should be useful for you.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fali
Posts: 22
Joined: Thu Mar 14, 2013 9:28 pm

Re: Cannot edit/delete existing dialog controls, more in com

Daniel,


After some trial and error, I was able to mostly get your solution working. Thank you.

However, I am still having trouble with the "service" portion of my request. As you may know, Windows services must be handled differently than standard Windows installation components. As such, through your method, if a user were to choose to start the service right away after installation, they would get an error message reading:
Cannot start service from the command line or debugger. A Windows Service must first be installed (using installutil.exe) and then started with the ServerExplorer, Windows Services Administrative tool or the NET START command.
How would I enable similar behavior for the service (let the user decide whether they want to launch it after installation or not)?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Cannot edit/delete existing dialog controls, more in com

Hello,

Please keep in mind that in order to achieve what you want you should make sure that your service is installed on target computer when your LaunchService custom action is launched. For this, you can add your service on our "Services" page. Also, you can take a look on our "Start an NT Service after install is complete" thread which debates a similar issue.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”