Sign in to follow this  
Followers 0
Velius

Any way to circumvent these = '{ }'?

7 posts in this topic

#1 ·  Posted (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 by Velius

Share this post


Link to post
Share on other sites



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

Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by weaponx

Share this post


Link to post
Share on other sites

Thanks,

I thought that I might have to work with variables.

I will try this.

Share this post


Link to post
Share on other sites

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 :P

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