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.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Installer without Registry values set

Hello Vijay,
If I create another .exe file with different version its displaying 'another version is already running.Please remove from add/remove entry'.
Usually, this message is showed if you created a package, installed it, modified its contents and then you tried to install it again without uninstalling the original one. Basically, Windows Installer can upgrade the original package only if the modified one has a higher version and a different Product Code.

If you don't want to create a new version of the package, you need to uninstall the original MSI before installing the modified one. However, if you want to create a new version which will upgrade the old one, you can follow the steps explained in the Upgrades article.

Please keep in mind that this error can only occur on development machines during the installer's authoring process. You needn't consider preventing it on clients' machines.

If you run the same installation package for the second time then Windows Installer will run the installer in maintenance mode and the user will then be presented with choices to alter the installed product, repair it or remove it (done through the MaintenanceTypeDlg). This is happening because the installation package has the same PackageCode GUID. A new PackageCode is generated each time you build your project. Think of the PackageCode as some sort of checksum. No two .msi files should ever have the same PackageCode unless they are identical.

Please take a closer look on the Product Identification article.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vijay
Posts: 26
Joined: Wed Feb 22, 2017 1:28 pm

Re: Installer without Registry values set

Hi all,

While installing my driver,its getting rollback.And in verbose log its showing like these.Can anyone solve me why its happening?

" DIFXAPP: WARNING:DRIVER_PACKAGE_LEGACY_MODE flag set but not supported on Plug and Play driver on VISTA. Flag will be ignored.
DIFXAPP: INFO: Installing INF file 'C:\OneBox\rpssdio.inf' (Plug and Play).
DIFXAPP: INFO: Could not open file C:\Windows\System32\DriverStore\FileRepository\rpssdio.inf_amd64_4582e9e403f0a55a\rpssdio.inf. (Error code 0x3: The system cannot find the path specified.)
DIFXAPP: ERROR: PnP Install failed. (Error code 0x3EE: The volume for a file has been externally altered so that the opened file is no longer valid.)
DIFXAPP: INFO: Attempting to rollback ...
DIFXAPP: INFO: No devices to rollback
DIFXAPP: INFO: Successfully removed '{DD743377-C71C-41ED-AC5F-A9413EAACDA2}' from reference list of driver store entry 'C:\Windows\System32\DriverStore\FileRepository\rpssdio.inf_amd64_4582e9e403f0a55a\rpssdio.inf'
DIFXAPP: INFO: RETURN: DriverPackageInstallW (0x3EE)
DIFXAPP: ERROR: encountered while installing driver package 'C:\OneBox\rpssdio.inf'
DIFXAPP: ERROR: InstallDriverPackages failed with error 0x3EE
DIFXAPP: RETURN: InstallDriverPackages() 1006 (0x3EE) ".




Thanks,
Vijay.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installer without Registry values set

Hello Vijay,

Please check my reply from our "Unknown Device after uninstallation" thread.

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

Return to “Common Problems”