Sign in to follow this  
Followers 0
shep211

help with regwrite please

4 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 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.

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 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

Share this post


Link to post
Share on other sites

Thank you guys that worked

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0