Jump to content

Any way to circumvent these = '{ }'?


Recommended Posts

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
Link to comment
Share on other sites

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!

Link to comment
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
Link to comment
Share on other sites

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
Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...