Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. MSI VB Custom Action

MSI VB Custom Action

Scheduled Pinned Locked Moved Visual Basic
windows-admintoolshelptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    paul4
    wrote on last edited by
    #1

    I add an application to the …\Windows\CurrentVersion\Run\ folder in the registry during an install, and would like to start the application immediately. The first solution would be to start the application manually from within a Visual Basic Script Custom Action, and the second solution would be to force a system reboot. Either would be acceptable. But I can’t seem to figure out how to set the “REBOOT” property to “Force” or to run an application in my Visual Basic script. Any help would be good. Thank you in advance.

    D 1 Reply Last reply
    0
    • P paul4

      I add an application to the …\Windows\CurrentVersion\Run\ folder in the registry during an install, and would like to start the application immediately. The first solution would be to start the application manually from within a Visual Basic Script Custom Action, and the second solution would be to force a system reboot. Either would be acceptable. But I can’t seem to figure out how to set the “REBOOT” property to “Force” or to run an application in my Visual Basic script. Any help would be good. Thank you in advance.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      To launch an external app try WshShell.Run or WshShell.Exec and supply it with the exact same command line that you put into the Run key. You can find more info on the WshShell.Run command here:

      http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsmthrun.asp

      RageInTheMachine9532

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups