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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Windows API
  4. Application Updating on mass Workstations

Application Updating on mass Workstations

Scheduled Pinned Locked Moved Windows API
securityquestionsysadminhelpannouncement
2 Posts 1 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.
  • K Offline
    K Offline
    Khanh David To Tuan
    wrote on last edited by
    #1

    So I got this Program that has one executable and can be configured to be Server/Client. Everytime the application starts up, it checks with the server for updates. If there is a newer .exe, it downloads it into its program directory as .exe.new. Then it launches update.exe and closes itself. The update.exe deletes the old .exe and renames the .exe.new to .exe. Now the problem under vista is the file restrictions. I install the program as Administrator, but of course the users run it as user. They can't write into the program directory. Now how do I update? Update.exe already requests elevation. I can't go to every workstation and enter administrator credentials everytime there is an update. Because there are many. 1)Is it possible to set up a LOCAL SYSTEM service upon installation that will play the part of update.exe? It would just download the new files into like USERS/PUBLIC/TEMP and copy them from there. But of course that would also compromise security, as any malware could call that service and write malicious code. I could heighten security by implementing a parameter that is derived from the current time or something, so the service wont do anything without correct authentication. 2) I could set write/read access for anyone to program files/blabla But that would expose my application to manipulation by malware. 3) The only other option I know is restricting the installation of my application into USERS/PUBLIC. Which would suck as anything else

    K 1 Reply Last reply
    0
    • K Khanh David To Tuan

      So I got this Program that has one executable and can be configured to be Server/Client. Everytime the application starts up, it checks with the server for updates. If there is a newer .exe, it downloads it into its program directory as .exe.new. Then it launches update.exe and closes itself. The update.exe deletes the old .exe and renames the .exe.new to .exe. Now the problem under vista is the file restrictions. I install the program as Administrator, but of course the users run it as user. They can't write into the program directory. Now how do I update? Update.exe already requests elevation. I can't go to every workstation and enter administrator credentials everytime there is an update. Because there are many. 1)Is it possible to set up a LOCAL SYSTEM service upon installation that will play the part of update.exe? It would just download the new files into like USERS/PUBLIC/TEMP and copy them from there. But of course that would also compromise security, as any malware could call that service and write malicious code. I could heighten security by implementing a parameter that is derived from the current time or something, so the service wont do anything without correct authentication. 2) I could set write/read access for anyone to program files/blabla But that would expose my application to manipulation by malware. 3) The only other option I know is restricting the installation of my application into USERS/PUBLIC. Which would suck as anything else

      K Offline
      K Offline
      Khanh David To Tuan
      wrote on last edited by
      #2

      Whatever, I havent been able to find anything in the last week and now I accidentaly find this article http://www.codeproject.com/KB/vista-security/VistaSessions.aspx[^].

      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