Groups | Blog | Home
all groups > dotnet setup > october 2004 >

dotnet setup : After start dialogs are removed from msi file, RemovePriorVersions does not work



jeffrey.rhoads NO[at]SPAM gmail.com
10/26/2004 7:17:04 AM
Hello everyone. I created an msi file using VS.NET 2003. I set the
RemovePreviousVerions = true and it worked great... any later versions
would in fact remove prior ones. I wanted to modify my msi install to
just show the progress bar and the completed dialog. So in VS I went
into the User Interface editor and deleted the 3 "Start" dialogs
(Welcome, Installation Folder, Confirm Installation) Then I edited the
msi file in Orca and set FolderForm_AllUsers to "ALL" instead of "ME"
so the install would go to "Everyone", instead of "Just Me"

When I install this msi the UI is great (there is no Welcome,
Installation Folder or Confirm Installation dialogs) and it goes right
to the Progress dialog, but now it will not remove prior versions. My
guess is that this step (Removing prior versions) is done in one of
these 3 dialogs that were deleted. Does anyone know of a way to remove
these first 3 dialogs and still have the msi detect and remove prior
versions? I dont want a silent install because I want the user to see
that the install is taking place and know when it is completed.
Note: I made sure my Upgrade Code and Product Code were valid.

Here is what I tried (none of which work):
Deleting the 3 dialogs in VS.NET's User Interface editor
Deleting the 6 dialog rows in Orca under the Dialog table
Changing the sequence of the RemoveExistingProducts to be the very
Phil Wilson
10/26/2004 7:28:39 AM
You deleted the dialogs where FolderForm_AllUsers has an effect, so I think
you did a per-user install, and that won't upgrade a per-system install. It
should work if you add ALLUSERS to the Property table and give it a value of
1 (that's basically what the dialogs do when FolderForm_AllUsers is ALL).
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

[quoted text, click to view]

AddThis Social Bookmark Button