Jump to content

Recommended Posts

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
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!

Posted

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.

Posted

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
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
Posted

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

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
×
×
  • Create New...