I'm developing a package with the Windows Installer Editor. There are no exe or msi executables... the installation is simply a bunch of files that I'm placing in the Program Files directory and creating a Program folder in All Users\Start Menu\Programs.

The installation itself works great... it places all the files where they need to go, puts shortcuts on the desktop, creates the Program folder in All Users, and inserts registry keys for file association.

The problem occurs when I try to run the un-install shortcut I made. It deletes almost everything... but leaves behind the All Users Program folder (empty), and a couple of the registry keys. I'm not working with a separate un-installation msi file (I've thought of doing that to get around this problem), I'm just using the following syntax on my un-install Shortcut :

[SystemFolder]msiexe.exe /x [ProductID] (with the appropriate working directory and destination directory)

I've hunted through the forums for a solution to my problem and encountered a few posts that seemed to point me towards creating a "Custom Action". I'm not exactly sure how to do this or what that refers to... the help file is vague on where one can find this property to modify or create it (I took Wise class a year or so ago, and finaly got a chance to start using it here at work, so some of my memory is rusty).

How would I resolve this, or where would I look for the appropriate Action to make the correct modifications to fix the problem?

Thanks...
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
For the empty All Users Program folder you will need to add that folder to the RemoveFile table.
Leave the FileName column empty and set the InstallMode column to msidbRemoveFileInstallModeOnRemove (2).

Are the registry entries which are left behind created fromout the Registry table or created by the application when you launch it?
Answered 05/16/2007 by: AngelD
Red Belt

Please log in to comment
0
The Registry keys are created by the msi installation itself during the installation. The keys in the Registry table are deleted when the un-install shortcut is run.
Answered 05/16/2007 by: Cerebus
Yellow Belt

Please log in to comment
0
The problem occurs when I try to run the un-install shortcut I made. It deletes almost everything... but leaves behind the All Users Program folder (empty), and a couple of the registry keys.

You state that the registry entries does not get deleted and in your last post they do.
So how is it or am I missing something?
Answered 05/17/2007 by: AngelD
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity