Thread: uninstall error
View Single Post
  #1 (permalink)  
Old 01-27-2005, 05:09 PM
godowsky godowsky is offline
Member
 
Join Date: Jan 2005
Posts: 50
Default uninstall error

The instruction at "0x72d2461f" referenced memory at "0x016c3c24". The memory could not be "read".

Click on OK to terminate the program
Click on Cancle to debug the program


This happends sometimes when I uninstall my program while it is running.

I use this script to stop program before uninstall:

//BeforeUninst

/* BeforeUninst
* remove the shortcut in the startup folder
*/

// get the startup folder
var startUp = Shell.getSpecialFolder("startup");

// get the path name of current application
var path = getExeName();
var file = new File(path);

// remove the shortcut in the startup folder
(new File(startUp + "\\" + file.name + ".lnk")).remove();

var wnds = Window.getWindowsByName("Funky Popping");

for (var i = 0; i < wnds.length; i++)
wnds[i].close();


if (wnd.length > 0)
{
Dll.registerFunction("kernel32.dll", "Sleep", "sleep",
"stdcall", "void", "long");

/* wait 1 second for the windows to be closed*/
sleep(5000);
}
Reply With Quote