Archive: WriteUninnstaller giving unusual error mesage


WriteUninnstaller giving unusual error mesage
Hi everyone. First I want to thank all the people here for devoting their time to helping other people. This is my first time posting, but I have been browsing for months.

I have a commercial scripting solution and I am running into the error "Invalid filesystem path missing" when the code reaches the this point in the code:

WriteRegStr HKLM SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\XXX" DisplayIcon "$INSTDIR\XXX\XXX-icon.ico"
WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\XXX" UninstallString "$INSTDIR\Uninstall.exe"
WriteUninstaller "$INSTDIR\Uninstall.exe"

Specifically, when the program executes the WriteUninstaller line. My program compiles, installs, and uninstalls properly though. The weird part of this error message is that I never got this before and I haven't changed the scripts (I am testing a backup and has been verified to work). I've tried various computers and versions of NSIS. Could anyone help me figure out the reason for this error? I'd really appreciate it.


Attach a script that can reproduce the problem.
You can remove any sensitive or proprietary stuff and just leave a core which demonstrates the issue.


I have attached. I have combined the the .oninit function and default section into one script for now so its easier to attach. Thanks for your help. I appreciate it.


This script cannot reproduce the problem. There are too many external dependencies which are missing, e.g. all the !included files, the ini files etc.
You need to strip it down to a bare bones stand-alone script which reproduces the problem.


Is path correct?


MessageBox MB_OK "$INSTDIR\Uninstall.exe"
SetOutPath "$INSTDIR"
WriteUninstaller "Uninstall.exe"

Perhaps you should specify the full path in WriteUninstaller.

-Stu