Extracting Dialogs after Importing MSI into new project - 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!

clint
Posts: 139
Joined: Fri Jun 19, 2009 9:46 am
Location: Germany

Extracting Dialogs after Importing MSI into new project

The repository with the dialogs was lost when my system crashed, but the project Aip and all files to install was saved elsewhere.

[Edit]
The original Aip project was created with AI 7.7.7.
[/Edit]

So I imported an MSI created with AI into a new AI 9.3 project using the wizard function.

Though it imported all the dialogs I created/changed, it stuck them into the "Unused dialogs" folder, and then created new default dialogs.

No dialogs can be exported/saved to the repository.

I saw that all the dialogs are defined directly in the Aip project file.

How do I extract these dialogs into separate Aip files in order to import them into other projects?

Thank you!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Extracting Dialogs after Importing MSI into new project

Hello,

In order to achieve what you want you can proceed like this:
- Open the project created using our "Import MSI" feature.
- Go to "Dialogs" page, select a dialog from dialogs tree (i.e. "WelcomeDlg") and from its context menu choose "Add Dialog..." option. From "Add Dialog" -> "Project" tab select the desired dialog (which is stuck into the "Unused dialogs" folder).
- After desired dialog it is added you can export it to "Dialog Repository" using "Move to Repository" context menu option.
- Now you can import the related dialog into another Advanced Installer project.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
clint
Posts: 139
Joined: Fri Jun 19, 2009 9:46 am
Location: Germany

Re: Extracting Dialogs after Importing MSI into new project

Thank you. I didn't see that.

There are still some issues, such as the control conditions I had previously defined are missing. However, the Published Events are there.
And dialogs in sequence by default need to be re-designed, as these cannot be replaced with the ones in "unused Dialogs".


Thanks again!

clint
clint
Posts: 139
Joined: Fri Jun 19, 2009 9:46 am
Location: Germany

Re: Extracting Dialogs after Importing MSI into new project

I finally got everything to work again.

The import from MSI file, and then adding the unused dialogs, then saving to repository worked.
Then opening my original Aip worked again, because the missing repository files where there again.

However, I could not create the package. While creating the msi, an error would occur: ControlEvent.idt followed by numbers.

I tried everything I could think of, and this went on for days. I should have just created from scratch!

I then started removing dialogs until it worked, so I could pinpoint which dialog was causing problems.
After that, I started removing controls on the dialog in question.

Surprise, surprise! For some reason between saving to repository and opening the original package again, there were duplicates created.
Some published events were duplicated, but that didn't cause problems.

Two controls, a check box and a text field, were duplicated directly over the top of one another so I couldn't see that they were duplicated!
AND the problem was caused by the duplicated having the exact same Id names as the originals!

Once removed, the package could be created.

Return to “Common Problems”