Luke
Posts: 22
Joined: Thu Oct 11, 2012 11:00 am

Corrupt dialog sequence

I'm Currently evaluating the Enterprise version of Advanced Installer and I'm working on an installer using the 'Air' theme with the 'SetupTypeDialog' that allows the user to choose a 'Typical' or 'Custom' installation. I have also created a single custom dialog called 'PFDatabaseDlg' that contains various additional setting I want the user to enter during installation. I want this dialog to appear for both typical and custom installations.

I have spent a lot of time with the dialog sequence trying to achieve what I want and finally ended up with a structure that can be seen in the first attachment. I was able to build an installer using this and it seemed to work. However, when I later reloaded the project to do some further editing the structure had been changed as per the second attachment. I don't know if it's actually corrupt or if it's simply being re-displayed in a different way as a result of reloading but I now find it unreadable. So it looks like I need to start again from scratch but I don't want to end up with the same problem again.

Can anyone tell me the correct method to achieve what I want in a way that will be preserved when the project is reloaded?

Specifically, after the 'SetupTypeDialog' has been used to choose a typical or custom installation I want the following two sequences to be followed:

1) IF TYPICAL:
FolderDlg
PFDatabaseDlg

2) IF CUSTOM:
FolderDlg
CustomizeDlg
PFDatabaseDlg

3) remaining steps common to both isntallation types:
VerifyReadyDlg
ProgressDlg
ExitDlg

--
Attachements:
Attachments
Before corruption
Before corruption
01 before.png (10.24 KiB) Viewed 5681 times
After corruption
After corruption
02 after.png (13.12 KiB) Viewed 5681 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Corrupt dialog sequence

Hello,

I've tested your scenario, but I cannot reproduce the behavior. Can you give us a more detailed test case scenario?

Also, please keep in mind that in order to clearly report an issue you can take a look on our How to report a problem for a faster resolution article.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Luke
Posts: 22
Joined: Thu Oct 11, 2012 11:00 am

Re: Corrupt dialog sequence

Thank-you for your reply.

I will start again with a a new project and see if I can reproduce the issue. Before I do this can you confirm that the approach I am taking, which results in the dialog structure in my 'before' attachment', is a sensible way to achieve what I want?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Corrupt dialog sequence

Hello,

Yes, you can use the related scenario in order to achieve what you want.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Luke
Posts: 22
Joined: Thu Oct 11, 2012 11:00 am

Re: Corrupt dialog sequence

I tried creating my installer again as a new project but using my custom dialog that I had previously stored in the repository. When I tried to build this second version I got an error 'Error calling MSI API: 1627 Method: MsiDatabaseImport Table: Control.' I then deleted my custom dialog from the repository and created a new version of that from scratch. This then allowed the build to complete and I have the dialog structure I want.

I don't really understand what went wrong the first time or why my original custom dialog started giving errors. I have a feeling that there may be some problem with using the 'Move to repository' option with 'Overwrite existing' causing the files in the repository to be updated incorrectly but I can't reproduce this every time.

Anyway, it seems to be working now, thanks for your help.

Return to “Building Installers”