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!

bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

Silent mode - Wizard Dialog stage

Hi

I have an EXE which has some custom actions like "Property set with formatted, SetProperty, Attached Custom Action, UninstallPreviousVersion" ---- in Wizard Dialog stage.

When I run the exe in the silent mode using "My.exe /exenoui /qn",
custom action defined in Wizard Dialog stage are not executed.
How to make the installer execute the custom actions even in the silent mode?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Silent mode - Wizard Dialog stage

Hi,

When you run a package in silent mode it only executes the actions found in the "Install Execution Stage" and unfortunately the custom actions found in "Wizard Dialog Stage" cannot be executed.

However, you can go in the Custom Actions page, press the SHIFT keyboard button, drag and drop your custom actions (duplicate) in the "Install Execution Stage", click on the "Advanced execution scenarios" link and check the "Skip action in Install Execution Stage if executed in Dialogs Stage" radio button. In this case your custom actions will be executed in the "Install Execution Stage" only if they were not executed in the "Wizard Dialogs Stage".

Although, some of your custom actions cannot be executed in the "Install Execution Stage" (i.e. "UninstallPreviousVersion" custom action) or you maybe want to execute them earlier (i.e. "SetProperty" custom action).

An example of how you can to execute the "UninstallPreviousVersion" custom action is well explained in the Why is /exenoupdates being added to the EXE_CMD_LINE? thread.

If you want to set a property you can follow the example below in command line:

Code: Select all

My.exe /exenoui /qn PROPERTY=New value
Also, if you want to populate controls, on some dialogs, you will not need them anymore as long as your package is installed in silent mode.

Let us know if this helped and do not hesitate to ask us any other question.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

Re: Silent mode - Wizard Dialog stage

Thnq for the reply,

I use "Uninstall prvious version" custom action to remove my old prducts if any. This is because I have some dlls which will be installed in GAC and when upgraded the dll are removed. So I went in this approch.

Now I am trying to remove this custom action and selecting "Install new version first and then uninstall old version". If I do this way, the upgrade is sucusfull but I see the old version shortCut in Start- all programes and also entry in Add/Remove programs . So I see old prodect details wich was uninstalled. How to avoid this ????

From the link http://www.advancedinstaller.com/user-g ... rades.html , it says :

The Install new version first and then uninstall old version option will work only if the files' components don't change from the old version to the new one (their names and GUIDs remain the same).

Is this about the Dll names or class files and XML names?????
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Silent mode - Wizard Dialog stage

Hi,
I use "Uninstall prvious version" custom action to remove my old prducts if any.
If the older versions of your product have the same "Upgrade Code" (which is normal) with the version that you want to create, then they will be automatically uninstalled if the "Automatically upgrade older product versions" option is selected in the Upgrades page. So, I don't think you need the "UninstallPreviousVersion" custom action anymore.

On the other hand, if they don't have the same "Upgrade Code", then you can use the method I recommended to you in my previous post, to uninstall the old product.
Now I am trying to remove this custom action and selecting "Install new version first and then uninstall old version". If I do this way, the upgrade is sucusfull but I see the old version shortCut in Start- all programes and also entry in Add/Remove programs . So I see old prodect details wich was uninstalled. How to avoid this ????
I'm not sure why you encounter this behavior, it might happen if the "Upgrade Code" of the two versions of your application is not the same. Also, as long as you install a new version of the application, the entry of the older version in Add/Remove Programs should be replaced by the entry of the newer version.
Is this about the Dll names or class files and XML names?????
I'm not so sure, but I think they must not cause your product entry not to be removed from Add/Remove Programs.

Also, I would suggest you to use the "Uninstall old version first and then install new version" option because this is more safe.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

Re: Silent mode - Wizard Dialog stage

When I "Uninstall old version first and then install new version" option I am facing one problem

In order to upgrade the Dlls in GAC, I am increasing (editing) the version on the Dll in "Assemblies -> Attributes" section
If this setting is set, When the product is uninstalled , the DLL are not uninstalled. As a result, at the time of upgrade, the dlls are not replaced and its pointing to the Old dlls

What could be the problem? Please see the setting from the bellow attachment.
Attachments
AI.gif
AI.gif (41.69 KiB) Viewed 9198 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Silent mode - Wizard Dialog stage

Hi,

I'm not sure why you encounter this behavior. Can you please send us the .AIP (project file) and a verbose log of the installation so we can investigate them?


Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

Re: Silent mode - Wizard Dialog stage

Hi
Please find the logs from the bellow attachment.

The unremoved dll name is "TangoCommonLibrary.dll".

This dll is installed in GAC and I have edited the version value from Assemblies - Attributes section.
If I dont edit it, its uninstalling from GAC.
Attachments
MSIc4bb1.LOG
(282.49 KiB) Downloaded 640 times
bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

Re: Silent mode - Wizard Dialog stage

Another qus:

When I run the my exe using "/exenoui /qn" a additional folder "32-bit" is created in the installed folder
All the 32 bit dll files are installed in this folder other than installed folder.

Where as I am not facing any problem while installing using UI. What could be the problem ????
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Silent mode - Wizard Dialog stage

Hi,
The unremoved dll name is "TangoCommonLibrary.dll".
The following line is written in the log file: "delegating uninstallation of assembly file : TangoCommonLibrary.dll to Fusion". This means that your DLL file might be in use by another application.
When I run the my exe using "/exenoui /qn" a additional folder "32-bit" is created in the installed folder
All the 32 bit dll files are installed in this folder other than installed folder.
I'm not sure why this happens. Can you please send us the .AIP (project file) so we can investigate it? You can send it to support at advancedinstaller dot com along with a link to this thread.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”