![]() ![]() You all may have already figured this out - but you should be giving write permissions to everyone to c:\programdata if you want anyone on the machine to use it. This approach is slightly less efficient than adding RunOnces to every user (and future user via the template), but it's far simpler, and the -checkInstall can be very fast in the simple case (and since Setup.exe is a C application, we don't have to load a huge runtime).This approach will solve it for both users already on the system as well as users who are created after the fact.If it doesn't, we act as if we were invoked with -silent The spawned -checkInstall will check for the directory %LocalAppData%\PKGID (by looking at our own EXE name) - if it exists, we bail out immediately.We create a Run entry under HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run that invokes the Setup.exe we've copied off, with a new -checkInstall parameter.We set the folder ACLs to Admin-write if they don't exist.We create a new directory, C:\ProgramData\SquirrelMachineInstalls and copy ourselves to it, giving ourselves the name "PKGNAME.exe".Scan the embedded Zip to determine the name of the package being installed (i.e.Setup.exe will now support a new parameter, -machine, which implies -silent.Alright, I think I've come up with something far simpler than these other proposals The Plan: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |