Velius Posted June 18, 2008 Share Posted June 18, 2008 (edited) Hi Everybody,It seems that one of my scripts is halting because of these { } (don't know the expression for it), since they're already used for key strokes and the like. I need to use them in my script though since InstallShield Apps use them i.e. for their folder naming convention.Any ideas?Thanks. Edited June 18, 2008 by Velius Link to comment Share on other sites More sharing options...
monoceres Posted June 18, 2008 Share Posted June 18, 2008 (edited) Hi Everybody, It seems that one of my scripts is halting because of these { } (don't know the expression for it), since they're already used for key strokes and the like. I need to use them in my script though since InstallShield Apps use them i.e. for their folder naming convention. Any ideas? Thanks. Hi! To send '{' or '}' you will need to enclose them in '{}'. Send("{{}This is some text inside braces{}}") Edited June 18, 2008 by monoceres Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
weaponx Posted June 18, 2008 Share Posted June 18, 2008 They are called "braces" and as long as they are within quotes you can use them. You need to example code or SciTe console output for us to assist further. Link to comment Share on other sites More sharing options...
Velius Posted June 18, 2008 Author Share Posted June 18, 2008 Sorry, English's not my native language although it might seem different. That's what it looks like: IF RegRead ('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AB6FFA58-F491-11D3-8951-000000019874}') Then Run (@ProgramFilesDir & '\InstallShield Installation Information\{AB6FFA58-F491-11D3-8951-000000019874}\setup.exe') Sleep (10000) WinWaitActive ("Installshield Wizard") Send("{DOWN}") Send("{Enter}") Sleep (5000) Send("{Enter}") WinWaitActive ("Installshield Wizard") Send("{DOWN}") Send("{Enter}") EndIf Link to comment Share on other sites More sharing options...
weaponx Posted June 18, 2008 Share Posted June 18, 2008 (edited) You might have to specify a working directory for Run(): $dir = @ProgramFilesDir & '\InstallShield Installation Information\{AB6FFA58-F491-11D3-8951-000000019874}' Run ($dir & "\setup.exe", $dir) Edited June 18, 2008 by weaponx Link to comment Share on other sites More sharing options...
Velius Posted June 18, 2008 Author Share Posted June 18, 2008 Thanks, I thought that I might have to work with variables. I will try this. Link to comment Share on other sites More sharing options...
Velius Posted June 18, 2008 Author Share Posted June 18, 2008 Ok, I saw the problem. Regread function requires a keyname AND a valuename to be defined. It wasn't about the braces. I changed it to this: $reg1 = 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AB6FFA58-F491-11D3-8951-000000019874}' If RegRead($reg1, "") Then Thnaks guys 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