Normal Installtion and Silent Installation - Advanced Installer Community
arunraja.raju
Posts: 15
Joined: Fri Nov 25, 2016 4:34 am

Normal Installtion and Silent Installation

hi all,
I created one .exe file with multi language support for device driver.This .exe file working with user interaction(normal installation) and this will create driver information in programs and features(control panel).If i execute this .exe file in command prompt the program running properly(with normal installation-user interaction).But i want to execute this same .exe file in silent mode using "/quiet" command.I tried this but i getting following problems:
1.showing language selection dialog box
2.created driver information in programs and features(control panel).
shortly i can say, i should have to create Only ONE .EXE file that will work for both normal installation and silent installation.If it is normal it should be with user interaction and should create driver information in programs and features.If i use "/quiet" command(silent installation) it should not show any dialog box and don't create any driver information in programs-features entry.

And i created another .exe file for silent installation,that working properly.But my intention is to create only one .exe file for both installation(normal/silent).
Please anyone reply me the solution....
Thanks in advance..
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Normal Installtion and Silent Installation

Hi and welcome to our forums.

In order to install the same EXE package with no UI you can launch it from an elevated command prompt with the following commands: myPackage.exe /qn /exenoui

However, I'm not sure how your drivers are installed and why don't you want to display them in the "Programs and Features" list during a silent installation. Can you please give me more details about this?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
arunraja.raju
Posts: 15
Joined: Fri Nov 25, 2016 4:34 am

Re: Normal Installtion and Silent Installation

Thanks Eusebiu..
Actually my intention is silent installation of driver.Just check this::- In advanced installer tool->product Details->add or remove programs(control panel)->Register Product with windows installer(here i have checked this box).So it won't create driver details in programs and features.For this i have to create another package,but i don't want another package.I need only one package which will work for both(normal/silent).For normal installation simply i run with command prompt(mypackage.exe).If it is silent one i used mypackage.exe /qn /exenoui command.This working properly without UI.But driver details showing in programs and features.

I tell you with example.Just take mouse installation.If mouse is inserted it automatically detects know.And not creating any driver details in programs and features.Same way we have to give our .EXE file to the Factory.If they execute that .EXE file in silent mode it won't show any dialogs and don't create any driver details in programs and features.Whenever customer insert our device to the system, at the time only it will automatically installs.And they customer don't want to see the driver details in program and features.So our driver should be already installed and the device also working properly,but i don't want driver details in program and features.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Normal Installtion and Silent Installation

Hi,

I understand that you do not want the driver details to appear in the "Programs and Features" list during the silent installation, but can you please tell me why do you want those details to be displayed there when the installation is done with UI? Wouldn't it be enough for you to uncheck the "Register product with Windows Installer" option for your driver package, so that its details will never be displayed in that list?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
arunraja.raju
Posts: 15
Joined: Fri Nov 25, 2016 4:34 am

Re: Normal Installtion and Silent Installation

Thanks Eusebiu..
Installation depends on users requirements.If they need normal installation they simply execute .EXE file.If they need silent installation they don't want UI and driver details in programs and features.So I need a .EXE file that will work for both.Finally we need if it is normal installation driver details should be in programs and features.Same way if it is executed by mypackage.exe /exenoui /qn command then the driver details should not be in programs and features.This is my intention.
arunraja.raju
Posts: 15
Joined: Fri Nov 25, 2016 4:34 am

Re: Normal Installtion and Silent Installation

If i uncheck that box will not create driver details in programs and features.this one fine.But we need if it is normal install, driver details should be there.If it is executed by mypackage.exe /qn /exenoui driver details should not be there.Is it possible to create single package that will create driver details in programs and features(simply run mypackage.exe ) and should not create driver details in programs and features(run mypackage.exe /qn /exenoui) ?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Normal Installtion and Silent Installation

Hi,

I'm afraid that it is not possible to have one package that can be registered with Windows Installer or not based on some conditions.

In order to achieve what you want, you can create two packages for the driver installation, one that will be registered and one that will not be registered. Then you can add both those packaged in your main package as "feature-based" prerequisite and install them based on the "UILevel" property.

You can use this property as a condition for the features related to those prerequisites in the "Organization" page (e.g. UILevel = 2 for silent installation and UILevel > 2 for UI installation).

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
arunraja.raju
Posts: 15
Joined: Fri Nov 25, 2016 4:34 am

Re:Driver Installation

Hi all,
I have installed network driver using .exe file which is created by advanced installer tool.So installation completed successfully.Again i have created another .exe file for same driver packages.So now i have two .exe files.First time i have installed one exe file,it is working properly.Again i installed another package,but oemx.inf file created two times in windows/inf folder.If i uninstall my device,uninstalled properly but again it is installing because of that another oemx.inf in windows/inf folder.So is there any way to resolve these?That is if i install next time all driver packages should be remove and newer one should have to update.Is there any option in advanced installer?

Please reply me the solution.



Thanks in advance.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Normal Installtion and Silent Installation

Hi,

The recommended way to share a resource between two products, is to set the same GUID for the components related to that resource in both projects. To achieve this, you can select your INF file in both project, then press the "F8" keyboard button to be redirected to its related component and set the same GUID for that component in both projects. Can you try this, then test your products on multiple clean machines and see if it works?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
arunraja.raju
Posts: 15
Joined: Fri Nov 25, 2016 4:34 am

Re: Normal Installtion and Silent Installation

Hi all,
I created executable,that works fine.And once the driver installed,i can see my device in device manager.If i right click on my device,i can see all the properties including details,advanced,details etc.But it not showing "POWER MANAGEMENT" box.Is there anything we have to do in advanced installer.Could anyone tell me the solution?


Thanks,
Arunraja.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Normal Installtion and Silent Installation

Hi Arunraja,

The "POWER MANAGEMENT" option should be displayed after the driver was installed? Do you try to install that driver from an Advanced Installer package? Does it works if you install it manually outside Advanced Installer? If so, can you test and see if the problem persists on multiple clean machines?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
arunraja.raju
Posts: 15
Joined: Fri Nov 25, 2016 4:34 am

Re: Normal Installtion and Silent Installation

Thanks
Eusebiu.

I found the problem with my driver.Now its working fine.


Thanks & Regards,
Arunraja.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Normal Installtion and Silent Installation

You're welcome Arunraja. I'm glad you solved the problem.

Just let me know if there is anything else that I can help you with.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
arunraja.raju
Posts: 15
Joined: Fri Nov 25, 2016 4:34 am

Re: Normal Installtion and Silent Installation

Hi all,
I am trying to install the driver again using another .exe file.But i can't able to install.That is i'm getting the following error:"The feature you are trying to use is on a network resource that is unavailable.click ok to try again, or enter an alternate path to a folder containing the installation package 'myfile.msi ' in the box below ".

Please anyone help me to fix.That is some msi file i have deleted.


Thanks,
Arun
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Normal Installtion and Silent Installation

Hi Arun,

I'm not sure why this happens. Please note that some EXE packages have their resources outside the package (e.g. MSI, CAB, etc.). So, when you try to install that EXE package, you need to make sure that its resources are available next to it.

An easier solution, is to set the package type to "EXE setup with resources inside" in the "Builds" page of your project. Can you try this and see if it works?

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

Return to “Common Problems”