shep211 Posted January 6, 2011 Share Posted January 6, 2011 I need to change a uninstallstring but it has " " in the string and is screwing up autoit. I am unsure how to fix this in autoit. RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ST6UNST #1", "UninstallString", "REG_SZ", "C:\WINDOWS\st6unst.exe -n "F:\Apps\SherlockV2\ST6UNST.LOG" ") error = missing separator character after keyword. Thank you for the help. Shep Link to comment Share on other sites More sharing options...
LurchMan Posted January 6, 2011 Share Posted January 6, 2011 (edited) I need to change a uninstallstring but it has " " in the string and is screwing up autoit. I am unsure how to fix this in autoit. RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ST6UNST #1", "UninstallString", "REG_SZ", "C:\WINDOWS\st6unst.exe -n "F:\Apps\SherlockV2\ST6UNST.LOG" ") error = missing separator character after keyword. Thank you for the help. Shep RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ST6UNST #1", "UninstallString", "REG_SZ", 'C:\WINDOWS\st6unst.exe -n "F:\Apps\SherlockV2\ST6UNST.LOG"') Try this Edited January 6, 2011 by LurchMan Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end. Link to comment Share on other sites More sharing options...
shanet Posted January 6, 2011 Share Posted January 6, 2011 (edited) RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ST6UNST #1", "UninstallString", "REG_SZ", "C:\WINDOWS\st6unst.exe -n "F:\Apps\SherlockV2\ST6UNST.LOG" ")I can see where you have gone wrong.Basically, you are trying to tell it to insert the following:C:\WINDOWS\st6unst.exe -n "F:\Apps\SherlockV2\ST6UNST.LOG" However, have a look again:C:\WINDOWS\st6unst.exe -n "F:\Apps\SherlockV2\ST6UNST.LOG" You are exiting what to input when you put in the new "So, try this instead:RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ST6UNST #1", "UninstallString", "REG_SZ", 'C:\WINDOWS\st6unst.exe -n "F:\Apps\SherlockV2\ST6UNST.LOG" ')All I have done, is changed the value container so it is surrounded by single quotation marks instead of double.That should work.shanet Edited January 6, 2011 by shanet [font="Comic Sans MS"]My code does not have bugs! It just develops random features.[/font]My Projects[list][*]Live Streaming (Not my project, but my edited version)[right]AutoIt Wrappers![/right][/list]Pure randomness[list][*]Small Minds.......................................................................................................[size="1"]Simple progress bar that changes direction at either sides.[/size][*]ChristmasIt AutoIt Christmas Theme..........................................................[size="1"]I WAS BOOOORED![/size][*]DriveToy..............................................................................................................[size="1"]Simple joke script. Trick your friends into thinking their computer drive is haywire![/size][/list]In Development[list][*]Your Background Task Organiser[*]AInstall Second Generation[/list]BEFORE POSTING ON THE FORUMS, TRY THIS: %programfiles%/AutoIt3/autoit3.chm Link to comment Share on other sites More sharing options...
shep211 Posted January 6, 2011 Author Share Posted January 6, 2011 Thank you guys that worked 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