Aleniko


Hi;

I have created a setup program with the install shield supplied with VFP9.

Install went OK, but then I realized I need to have some additional files like the runtime libraries etc.
On the second try, Installshield wants me to remove the old installation using ADD/REMOVE from control panel.
The problem is that I cant find the installed program anywhere in the add/remove programs.

I am also not sure how I would make installshield reinstall over the current installation.

Any help would be greatly apreciated.

Alen.



Re: Application reinstall using install shield.

dni


Information about previous installation is in registry. You may use a third party uninstaller or manually delete entries from registry.





Re: Application reinstall using install shield.

Aleniko

Thanks for the input.

Every time a user wants to reinstall I should tell them to open regedit, go to HKEY_CURRENT_USER\Software\Microsoft\Installer\Products\00F89E5330FBB34458915CDFFBBCB3FF
and delete the key.

Any other solutions

Thanks again :-)







Re: Application reinstall using install shield.

Stuart Dunkeld

You can invoke the uninstall from the command line:

msiexec -x path_to_package.MSI
or
msiexec -x {GUID}






Re: Application reinstall using install shield.

dni

You may use :

http://support.microsoft.com/default.aspx/kb/244675

to write a small program to delele unwanted registry values before a new install.






Re: Application reinstall using install shield.

Aleniko

Thank you all for your comments, But:

Am I to understand that the version of Install Shield shipping with VFP9 is by design not providing install-over or uninstall And on top of everything, it will install apps only in such a way were the user can't uninstall it from the windows add/remove utility Sounds more like a Spyware installer...
Its pretty hard to believe Microsoft is capable of such a thing.
Why would anyone want to use this tool if this is indeed the case

Alen.




Re: Application reinstall using install shield.

dni

I really don't know but if you found that you may feel free to report to Microsoft.




Re: Application reinstall using install shield.

Rick Borup

Aleniko,

There are a couple of reasons why the product might not show up in Add/Remove Programs (ARP). Was "Use Add/Remove Programs" set to Yes in the General Information pane of your InstallShield Project That's the default, but maybe it got changed. Also, are you logged in as the same user while trying to uninstall that you were logged in as when the product was installed

Even if the product does not show up in ARP, there are still a number of ways to remove it.

1) If you built a CD-ROM setup package then the MSI file was created as a separate file in the DISK1 folder of your build path, and you can uninstall the product by running msiexec.exe with the -x option. The syntax (as Stuart already mentioned) is:

msiexec.exe /x myproduct.msi

2) If you built a single-image setup package you can pass parameters to msiexec via setup.exe by using the /v option. The syntax is

setup.exe /v/x

You do not need to append the name of the msi file because it's embedded in setup.exe.

3) If neither of the above approaches works, you can try the Windows Installer Clean Up Utility. Information is at http://support.microsoft.com/kb/290301. This utiltity is designed to remove the Windows Installer registry entries pertaining to a specific product. Once the registry's been cleaned up you can remove the product's actual files manually (e.g., from Program Files, or wherever).

You can force reinstallation of an installed product by passing the 'vomus' parameters to msiexec via the /f option. If you have the msi file, the syntax is:

msiexec.exe /fvomus myproduct.msi

If you do not have the msi file but so have a single image setup.exe built by InstallShield, the syntax is:

setup.exe /v"REINSTALLMODE=vomus REINSTALL=ALL"

The above command is case sensitive within the quotes. There are limits to what this type of reinstallation can accomplish so it's not recommended as a general approach for installing updates to a product, but in a pinch you can use it to apply minor changes as it sounds like you need to do here.

-Rick






Re: Application reinstall using install shield.

Aleniko

Rick;

Thank you so much for the detailed solution.
I still don't undestand why the app won't apear in ARP. Yes, it is set to "Y" in the general pane and also login was the same. Basically I tried to install and then made a change so runtime libs are included and tried to install again.

The best solution is if I can force resinstalls, like you've mentioned in your last suggestion.
Is there a way to make the parameters as part of the setup.exe command itself I'm going to send apps both vial Email and web download - no cds.

Thanks,

Alen.




Re: Application reinstall using install shield.

Rick Borup

> The best solution is if I can force resinstalls, like you've mentioned in your last suggestion. Is there a way to make the parameters as part of the setup.exe command itself

I'm not sure there is a way to do this with a single-image type of build. When a single-image setup.exe runs, its configuration settings are embedded in the EXE. The only way I know of to modify them at runtime is to pass parameters in via the /v option.

With a CD-ROM type of build there is one other way of doing this: You can add the parameters to the CmdLine entry in the Startup section of the setup.ini file, which, like the MSI file itself, is a separate file in that type of build. The syntax is:

[Startup]
CmdLine=REINSTALLMODE=vomus REINSTALL=ALL

When setup.exe runs, it reads setup.ini and picks up the values for the REINSTALLMODE and REINSTALL properties from there. I have not tested to see if deploying an external setup.ini file with a single-image setup.exe has any effect. My guess is that it would not, but one could test to find out.