How to set the Silent/Normal install in a single exe? - Advanced Installer Community
arunraj.n
Posts: 13
Joined: Wed Nov 09, 2016 7:41 am

How to set the Silent/Normal install in a single exe?

Hi all,
How to set the Silent/Normal install in a single .EXE?

If i install the .EXE as a normal method, in add/remove programs shows the driver information.That's fine.

But if i execute same .EXE as in silent mode, it is installing but the problem is in add/remove programs shows the driver information.For silent install no need to show these information in add/remove programs.

How to execute both installation in same .EXE?. Is it is possible or not?

with regards,
Arun
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How to set the Silent/Normal install in a single exe?

Hello Arun,

I'm not sure I fully understand your requirement. Do you need only to hide the control panel entry after a silent installation or not to install at all the driver during a silent installation?

If you install your driver files using our "Drivers" page, then you can add your driver twice in your setup project and configure one flavor of your driver to use the "Do not create an Add or Remove Programs entry for the component" option and the other flavor of your driver don't use above option. Then you should condition the components of your first driver flavor with the following condition:

Code: Select all

UILevel <> 5
The components of the second driver flavor should use the following condition:

Code: Select all

UILevel = 5
Let us know if this helped, otherwise please give us more details about your requirements.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
arunraj.n
Posts: 13
Joined: Wed Nov 09, 2016 7:41 am

Re: How to set the Silent/Normal install in a single exe?

Hi Daniel,
Thanks for the information,

Yes, absolutely i need to hide the control panel entry after a silent installation.But not for Normal installation.

Where we have to change that UI level?

Actually we have only one .inf file and how to add same .inf again in drivers?

With regards,
Arun
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How to set the Silent/Normal install in a single exe?

Hello Arun,

Here's how you can proceed, step by step:
1. open your AIP (project file) in Advanced Installer and go to "Files and Folders" page
2. select the .inf file and from its context menu choose "Go To Component" option
3. in "Organization" page add the following condition on the selected component:

Code: Select all

UILevel = 5
4. go back to "Files and Folders"page and under the folder containing your .inf file create a new subfolder
5. right click on the subfolder and choose the "Properties" option; in the "Properties" tab of the "Edit Folder" dialog check the "Install folder content into the parent folder" option
6. select the subfolder and using [Add file] toolbar button add from disk the .inf file again
7. right click on the .inf file from the subfolder and choose "Go To Component" context menu option
8. in "Organization" page add the following condition on the selected component:

Code: Select all

UILevel <> 5
9. go to "Drivers" page and add a new driver installation entry by picking the .inf file from the above subfolder
10. check the "Do not create an Add or Remove Programs entry for the component" option for the second driver entry
11. rebuild and test the installation

That way when you will launch the installation with full UI it will be installed the driver with the entry added in control panel, otherwise the driver installation will be done without registering the driver in control panel.

Please take a look on the "UILevel" property article.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vijay
Posts: 26
Joined: Wed Feb 22, 2017 1:28 pm

Installer without Registry values set

Hi all,
I have created single executable for device driver(network driver).Its installed fine.If I create another .exe file with different version its displaying 'another version is already running.Please remove from add/remove entry'.Just check the following steps whether its correct or not?

1.Product Details->Added all details and checked "Register product with windows installer".
2.Files and Folders->Added driver files under 'Application Folder'.
3.Driver->Added .inf file.
4.Install parameters->a)Application folder-[Windowsvolume][productname]
b)Installation options-package type(32 bit)
Installation type(per machine only(fails if user not an administrator))
Reboot behavior(reboot If required)
5.Build->a)package type-single EXE setup(Resources inside)
b)output-My exe file name
c)Archive-Kept as is.
d)Database Encoding-kept as is.
e)Bootstrapper options-Uninstall a package with same version(if found)
6.Launch conditions->a)supported OS-checked "32 bit windows version"
b)system requirements-checked "Run only if user has administrator privileges"
And modified something in translations and themes.

This package is installed properly on my system and device working fine.I didn't use registry option,but its automatically added details in registry editor.
So my doubt is whether we should use registry or not?.And please tell me the above steps are enough or not?.



Best regards,
Vijay.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How to set the Silent/Normal install in a single exe?

Hello Vijay,

When building a new version of your setup package please make sure you are increasing at least one of the first three fields of the ProductVersion. The fourth field is ignored by Windows Installer.

Also, please take a look on our "Why do I receive the "Another version of this product is already installed" message?" faq.

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

Return to “Common Problems”