Re:uninstall error
No this is my script:
//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("Movimento break");
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(1000);
}
I tried to remove the top of the script, - the part that removes a short cut int the start folder but I still got the error.
Just saw that this is in 2 lines:
Dll.registerFunction("kernel32.dll", "Sleep", "sleep",
"stdcall", "void", "long");
maybe it should be like this:
Dll.registerFunction("kernel32.dll", "Sleep", "sleep", "stdcall", "void", "long");
|