A.B.Ames 0 Posted November 15, 2004 I created a small script that creates a dir and copies itself there, then adds a key to the RunOnce registry to start at boot. But I also added an Unistall so that if it is run from any other place (than its installed Directory) it will ask if you want to remove all. Now with Windows XP booted up (startmenu showing) it works perfect, if run from it's install directory it begins to run it's main function and skips the uninstall option: If @ScriptFullPath <> "c:\RegOwner\XPChangeOwner.exe" Then --misc script here for checking and unistalling EndIF --the main script to change XP Data............... and if run from other than ScriptPath (ie. CDROM) it offers to uninstall as it should. Problem is that when i use the RunOnce reg key to start it, it then brings up the uninstall msgbox so it seems RunOnce doesn't really run it from the starting directory? am very confused, any Ideas? Share this post Link to post Share on other sites
A.B.Ames 0 Posted November 15, 2004 Sorry all, been up too long i guess, spent forever fighting with this and found an EndIF out of place it was actually showing me a second similar message. Again, very sorry A.B.Ames am very confused, <__ yep i was !! ~Snipped~ Share this post Link to post Share on other sites