Archive: Uninstaller created every other time?


Error creating uninstaller file?
Hi there, I've been reading forum posts and google listings for weeks and I still can't figure out why the Uninstaller for my script is created sometimes and not created at other times.

I'm struggling with understanding where the uninstall keys should be placed in the registry, so could it be related to using the following values for the registry?

;Default installation folder
InstallDir "$APPDATA\Prism"
InstallDirRegKey HKCU "Software\Prism" "Install_Dir"
...
WriteRegStr HKCU "Software\Prism" "Install_Dir" INSTDIR
...
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${MUI_PRODUCT}" "DisplayName" "${MUI_PRODUCT} (remove only)"

When it is created, it is properly placed in the $INSTDIR but other times it just does not seem to be created.

I even did a search on the hard disk to see if the file was being placed in a different folder. I do see a file called "UNINSTALL.EXE-079433DA.pf" being placed in the "Windows/Prefetch" folder. Googling that folder name doesn't help any.


problem resolved!
All is well!

I had to create the directory that stored the uninstall program before I executed the WriteUninstaller command??

Not sure if that is the correct procedure, and it's not in any of the documentation, but it worked for me!