ADDLOCAL in command line - Advanced Installer Community
McKool
Posts: 113
Joined: Wed Jan 19, 2011 12:35 pm
Location: Darmstadt, Germany
Contact: Website

ADDLOCAL in command line

Hello Support,

I have a (probably silly) question. I'm using AI 12.1 to create a Setup that should be configured over command line. I have defined several features all with install level 4 (Not installed per default). When I launch the setup over command line using ADDLOCAL, then the "Resume Dialogs" appear as if the installation was interrupted before. Not using ADDLOCAL wihtin the command line causes a normal behavior, i.e. showing the "First Time Install" dialogs.

Do you have any idea of why this is happening and of how I can avoid showing the Resume dialogs?

thanks in advance,
Keneth
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: ADDLOCAL in command line

Hello Keneth,

Please note this is the default Windows Installer behavior and it cannot be changed.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
McKool
Posts: 113
Joined: Wed Jan 19, 2011 12:35 pm
Location: Darmstadt, Germany
Contact: Website

Re: ADDLOCAL in command line

Hello Daniel,

thanks for your reply.
Daniel wrote:Please note this is the default Windows Installer behavior and it cannot be changed
Not really. This is not normal since specifying features over the command line must not indicate a "resuming" of an installation that has not been started yet. This is logically wrong.

Actually I am re-writing an old Msi project written using "Wise for Windows Installer 7". Passing the ADDLOCAL to the file generated by the old Wise project doesn't show this problem.

I will really appreciate any help or tip you can give on this.

Kind regards,
Keneth
McKool
Posts: 113
Joined: Wed Jan 19, 2011 12:35 pm
Location: Darmstadt, Germany
Contact: Website

Re: ADDLOCAL in command line

I found the problem:
Condition for ResumeDLg
Condition for ResumeDLg
Problem.jpg (87.39 KiB) Viewed 6646 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: ADDLOCAL in command line

Hello Keneth,

First of all I apologize for my previous misleading response. I've talked this with our development team and it seems that, indeed, we choose whento display the "ResumeDlg" dialog. The "ResumeDlg" dialog is set when the following condition is true:

Code: Select all

RESUME OR Preselected
To achieve what you want, as a workaround you can proceed like this:
1. go to "Table Editor" page and select the "InstallUISequence" table
2. edit the condition of the "AI_SET_RESUME" action like this:

Code: Select all

RESUME OR Preselected AND (NOT ADDLOCAL)
3. rebuild and test the project

Please note that our "Table Editor" feature is available only in an "Enterprise" or higher project type.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
McKool
Posts: 113
Joined: Wed Jan 19, 2011 12:35 pm
Location: Darmstadt, Germany
Contact: Website

Re: ADDLOCAL in command line

Hello Daniel,

thanks for your help. I had modified already the condition by removing the "OR Preselected" part (I do have an Enterprise License). Since I did that change the setup is working as expected.
Daniel wrote:1. go to "Custom Actions" page and select the "InstallUISequence" table
you meant "Table Editor", don't you?

Regards,
Keneth
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: ADDLOCAL in command line

you meant "Table Editor", don't you?
Yes, I've edited my previous post accordingly.

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

Return to “Common Problems”