Extracting Dialogs after Importing MSI into new project

Having trouble running Advanced Installer? Got a bug to report? Post it all here.

Extracting Dialogs after Importing MSI into new project

Postby clint » Wed Jul 04, 2012 5:07 pm

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!
clint
 
Posts: 51
Joined: Fri Jun 19, 2009 9:46 am

Re: Extracting Dialogs after Importing MSI into new project

Postby Daniel » Fri Jul 06, 2012 9:45 am

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
http://www.advancedinstaller.com/
Daniel
 
Posts: 2067
Joined: Mon Apr 02, 2012 1:11 pm

Re: Extracting Dialogs after Importing MSI into new project

Postby clint » Fri Jul 06, 2012 3:59 pm

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: 51
Joined: Fri Jun 19, 2009 9:46 am

Re: Extracting Dialogs after Importing MSI into new project

Postby clint » Thu Jul 19, 2012 7:05 pm

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.
clint
 
Posts: 51
Joined: Fri Jun 19, 2009 9:46 am


Return to Common Problems

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 6 guests