rainmanal Posted April 21, 2008 Share Posted April 21, 2008 I am writing a script to remove software but i need to reboot the machine in order to finish uninstalling, is there a command to execute a script after reboot to finsh uninstalling? Link to comment Share on other sites More sharing options...
monoceres Posted April 21, 2008 Share Posted April 21, 2008 There is a nice registry key called RunOnce Here's an example of writing to it: RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce","Script Name","REG_SZ",@ScriptFullPath) Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
aGorilla Posted April 21, 2008 Share Posted April 21, 2008 I don't know about any command to do it, but you could use FileCreateShortcut to make a link to the script, and place it in the @StartupCommonDir, then delete it when the script finishes. Search AutoItScript.com via Google Link to comment Share on other sites More sharing options...
rainmanal Posted April 21, 2008 Author Share Posted April 21, 2008 Thanks, I'll give it a try! There is a nice registry key called RunOnce Here's an example of writing to it: RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce","Script Name","REG_SZ",@ScriptFullPath) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now