Application Error after running setup.exe on Vista / Windows 7
I have a NSIS installer, and at the end of the program when I click to close it, I get the following dialog:
<<<
setup.exe - Application Error
The instruction at 0x77b6054b referenced memory at 0x005487d0. The memory could not be written.
Click on OK to terminate the program
OK
>>>
The only custom functions I'm using are ReadCustomerData and one I wrote to write a config file into %APPDATA%/MyCompany/.config
Sometimes when I run this, the .config file never gets created.
Other times (on a Windows 7 machine), inside the "C:\Users\Mike\AppData" directory I've found a "RoamingMyCompany.config" file (the directory should have been "C:\Users\Mike\AppData\Roaming\MyCompany\" with a ".config" file)
Any idea what could be causing this?
Thanks!
Mike
Function WriteCustomConfig
FileOpen $R0 "$APPDATA\MyCompany\.config" w
FileWrite $R0 "open $myhost$\r$\n"
FileClose $R0
FunctionEnd