Hi,
I am doing the following:
1) In the Setup Project �gt; File System windows �gt; Right Click “File System on Target machine��gt; add a Special Folder, select System Folder;
2) Into this system folder Add a file. Browse for msiexec.exe from local System32 folder and add it. Override default properties of this file as follows:
Condition:=Not Installed (make sure you put ‘Not Installed�exactly like that, same case and everything), Permanent:=True, System:=True, Transitive:=True, Vital:=False.
3) Create a new shortcut under the ‘Users Program Menu� Set Target to the System Folder which you created in the step 1. and point it’s at the msiexec.exe. Rename the shortcut to ‘Uninstall Your Application� Set the Arguments property to /x{space}[ProductCode].
This gives me the uninstall shortcut which basically executes the msiexec.exe in the local system32 folder. This way the unistallation can be done.
But when I uninstall using this option or even Add/Remove Programs (when the PostBuildEvent is mentioned), the program folder from the User's Program Menu is stays behind with the Uninstall shortcut in it.
Hope this answers your question.
Thank You,
-Bhaskar