Jump to content

Copyrigth

Members
  • Posts

    16
  • Joined

  • Last visited

Copyrigth's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi is it possible to add "switches" to the complied exe file ex: "software_installer.exe /all" (install all the software in the program) and "software_installer.exe /cat1" installs all from the first category?
  2. Awesome, thank you so much!!
  3. Func _Warning() $Form1 = GUICreate("Melding", 290, 100) $field1 = IniRead($iniwarning, "Master","msg","") $field11 = GUICtrlCreateLabel($field1, 20,10) $field2 = IniRead($iniwarning, "Master","bruker","") $field22 = GUICtrlCreateLabel($field2, 20,25) $Button1 = GUICtrlCreateButton("OK", 20, 50, 100, 40, 0) $Button2 = GUICtrlCreateButton("Fjern", 170, 50, 100, 40, 0) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg ;~ If IniRead($iniwarning, "Master", "msg") = "0" then ExitLoop Case $GUI_EVENT_CLOSE GUIDelete($Form1) ExitLoop ;~ case If IniRead($iniwarning, "Master", "msg") = "0" GUIDelete($Form1) ExitLoop Case $Button1 _maskin() Case $button2 _diverse() EndSwitch WEnd EndFunc
  4. Yes, I have tried that :/ I do not get an error code, but the loop does not end, i've tried to put the code in different places in th function....
  5. I'm not sure what you mean
  6. Hi, I'm wondering if it is possible to exitloop base on a value in an inifile? If IniRead($iniwarning, "Master", "msg") = "" then exitloop Somthing like the "code" over?
  7. The code worked just fine on my 64-bit Win7, but on my 32-bit it needed a litte more: If $extension = "msi" Then Run("msiexec /i " & '"' & $scriptDir & "./Software/" & $fileName & '" ' & $switch) ; For MSI type installers Else RunWait('"' & $scriptDir & "./Software/" & $fileName & '"' & " " & $switch) ; For EXE installers EndIf Hope this help
  8. SWB, There is nothing wrog there if your files is in a katalog kalled "Software" in the same katalog you run the script from. If that is the case try posting the hole function
  9. Thank you so much kylomas
  10. I was thinking about what you described, with 3 collums like this: Field1 | Field2 | Field3 User | computername | OS
  11. Can you please point me in the direction?
  12. Hi, I was wondering if there is a way to populate an listview using ini file? My ini file looks like this: [copmuter1] user=student OS=win7 [copmuter2] user=Admin OS=winxp
  13. Mine look like this, works like a charm Global $iniFile = @ScriptDir & ".\Config.ini"
  14. I hadd the same problem, but when i added "." before the path it worked. (for me, atleast)
×
×
  • Create New...