Jump to content

Djm79

Members
  • Posts

    8
  • Joined

  • Last visited

Djm79's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi Marc, thanks for the reply. I think the path is being send correctly, and it's not as simple as having scroll back to the start, it's simply not writing anything before v1.1
  2. Hi, I need to send a file location path to an msi installer that I am running via AutoIT. I have set of variable of $path = "V:\Install" and I am sending : Send($Path & "\Visualfiles V2 Client v1.1\solcase & visualfiles api v1.4\Prettys") as my path. When this is sent to the installer, only half of the path is displayed (from v1.1 onwards). Does anyone have any ideas why this happens and how I can get resolve it. Any help would be greatly received, I am been scratching my head for a day or so over this one ! Thanks.
  3. Hi, I am after a command similiar to KeyExist from Kix Scripts. I need to look for the presence of a registry key, and if this key isn't present I need to script to move on as I need it to. Can anyone help ? Thanks
  4. Dim $Inst2x While 1 $Inst2x = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\2x\AppServerClient", "ClientVersion") If @error <> 0 Then ContinueLoop Sleep(1000) Else ExitLoop EndIf WEnd if $inst2x <= "5.0.275" Then RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\2x") RegDelete("HKEY_CURRENT_USER\SOFTWARE\2x") msgbox(0,"Error","A version of the 2X Client has already been installed and configured, please remove this software using Add or Remove Programs from the control panel. Once removed please run this setup again.") EndIf Didn't do anything I'm afraid !!!!!
  5. dim $Inst2x While 1 $Inst2x = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\2x\AppServerClient", "ClientVersion") If @error <> O Then ContinueLoop Sleep(1000) Else ExitLoop EndIf WEnd if $inst2x <= "5.0.275" and $inst2x = " " Then RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\2x") RegDelete("HKEY_CURRENT_USER\SOFTWARE\2x") msgbox(0,"Error","A version of the 2X Client has already been installed and configured, please remove this software using Add or Remove Programs from the control panel. Once removed please run this setup again.") I get a syntax error on "if @error <> @ then
  6. ERROR: 'Return' not allowed from global scope.
  7. Thanks for the reply MrBond007, but this doesn't do what I need. I need to check the version number ($Inst2x = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\2x\AppServerClient", "ClientVersion") if $inst2x <= "5.0.275" Then and if this exists then the msg is displayed. This works fine. What I need to add so a way of still running the install if the version number is available. At the moment if the inst2x key isn't available the warning box is still displayed as the <= is run. I need this to see that the key isn't they and then run the install. I hope this makes sense
  8. Hi, I have a script that looks for a version number in a reg key, and if the value is less than or equal to this number the script than displays a warning message. The problem I have is that when the key doesn't exist (before the software is installed) the script display the same warning as above. $Inst2x = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\2x\AppServerClient", "ClientVersion") if $inst2x <= "5.0.275" and inst2x = " " Then msgbox(0,"error", version of 2x already installed) Any ideas on how I can get round this would be great, thanks
×
×
  • Create New...