[SCHEDULER-768]  Scheduler and User Account Control
Type Bug
Priority High
Severity Major
Component Setup Package
Fixed In Version [3.43.4
Versions Affected [3.43.4
Severity Closed
Resolution Complete
Reported By Bob Denny
Resources Bob Denny
Start Date 1/25/2012

Description
With UAC on, Windows 7, some people (e.g. Robert Ball) have the problem that the script that creates the initial SchedulerData.mdb fails during installation because it's trying to write to Program Files, etc.

Even if you get past that, Scheduler won't run saying registry problems with license info, etc. Must shut off UAC.

With UAC off, there is still a problem where Scheduler will not exit. The window disappears after a "long" time, but a process "Scheduler.exe" remains running and has to be killed.

Comments
2/4/2012 5:06:07 PM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/scheduler
SVN Revision 254
Affected files /trunk/Help/RelNotes.htm (Modified)
/trunk/Scheduler.sln (Modified)
/trunk/SchedulerSetup/Custom Actions/SecAdjustForUac (Added)
/trunk/SchedulerSetup/Custom Actions/SecAdjustForUac/Installer1.Designer.cs (Added)
/trunk/SchedulerSetup/Custom Actions/SecAdjustForUac/Installer1.cs (Added)
/trunk/SchedulerSetup/Custom Actions/SecAdjustForUac/Properties (Added)
/trunk/SchedulerSetup/Custom Actions/SecAdjustForUac/Properties/AssemblyInfo.cs (Added)
/trunk/SchedulerSetup/Custom Actions/SecAdjustForUac/SecAdjustForUac.csproj (Added)
/trunk/SchedulerSetup/SchedulerSetup.vdproj (Modified)
Check-in comment Trying again to slay the dragon. This may be 3.5... GEM:768
2/4/2012 4:50:45 PM   Bob Denny
Another bunch of time burned, wrestling with an assembly-based custom action. Looks like I have it like I want it now.
2/3/2012 3:43:30 PM   Bob Denny
Damn it, though it has been reported fixed, the subinacl subprocesses are showing in CMD windows during installation and I see WARNING: in them as they  flash. Back on this yesterday and today.
1/26/2012 4:10:39 PM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/scheduler
SVN Revision 240
Affected files /trunk/SchedulerSetup/Custom Actions/CustomAction_NoImpersonate.js (Added)
/trunk/SchedulerSetup/Custom Actions/Manage permissions with SUBINACL.url (Added)
/trunk/SchedulerSetup/Custom Actions/subinacl.exe (Added)
/trunk/SchedulerSetup/Custom Actions/subinacl.htm (Added)
/trunk/SchedulerSetup/Custom Actions/tooldownloadreadme.htm (Added)
/trunk/SchedulerSetup/SchedulerSetup.vdproj (Modified)
Check-in comment *** VERSON 3.4 UPDATED INSTALLER VERSION 3.4.8 *** Relaxes perms on the ProgFiles\ACP Scheduler folder and the special licensing registry key. GEM:768
1/26/2012 4:07:18 PM   Bob Denny
After blowing 7 hours on WMI scripting, I decided to use the almighty subinacl.exe tool with command lines, as custom actions for relaxing the security needed.
1/25/2012 6:25:47 PM   Bob Denny
There are two issues:
  1. The Program Files\ACP Scheduler folder where the schedule database is located is locked for writing by the Scheduler. This has several bad effects.
  2. The secret registry area where the 60 day demo info is kept is locked against writing by the scheduler. 
Both of these objects need to be given full control ACL for the "Users" group. This is sub-optimal for the Program Files directory. In a future release, the schedule database (and its backup) should be moved to All Users/Application Data or something. See related SCHEDULER-781.

This is a bitch as the perms need to be set from the JScript custom actions in the installer. I'll need to do JIT Learning on WMI to do this. Time Consuming!
1/24/2012 7:11:28 AM   Bob Denny
Another report in this Comm Center thread.