Good Afternoon,
Due to the need to lock down the database directory, we need to run alpha as another user (a service account specifically for this purpose), and deny access to standard users.
We had this working perfectly on our Developer versions, but when we adjusted the path to launch the Runtime version for our users, it no longer works properly.
The Alpha application still launches and is running as the correct user, however it does not open to the specified database.
The only difference being the path to the program, "C:\Program Files (x86)\a5V12" for Developer and "C:\Program Files (x86)\a5V12 Runtime" for runtime.
We have narrowed down the issue to being the autoexec file failing to play, but are unable figure out why.
The issue occurs when launching from command line using runas or via the below powershell.
Both commands work to launch the Developer version, but neither work to launch Runtime.
The error displayed by alpha upon loading is:
Works
Does NOT Work
Works
Does NOT Work
Due to the need to lock down the database directory, we need to run alpha as another user (a service account specifically for this purpose), and deny access to standard users.
We had this working perfectly on our Developer versions, but when we adjusted the path to launch the Runtime version for our users, it no longer works properly.
The Alpha application still launches and is running as the correct user, however it does not open to the specified database.
The only difference being the path to the program, "C:\Program Files (x86)\a5V12" for Developer and "C:\Program Files (x86)\a5V12 Runtime" for runtime.
We have narrowed down the issue to being the autoexec file failing to play, but are unable figure out why.
The issue occurs when launching from command line using runas or via the below powershell.
Both commands work to launch the Developer version, but neither work to launch Runtime.
The error displayed by alpha upon loading is:
Code:
Script:a5_dictionary_read() line:149 Table is encrypted using a different key
Code:
Start-Process -Credential $credential -FilePath "C:\Program Files (x86)\a5V12\alpha5.exe" -WorkingDirectory "C:\Program Files (x86)\a5V12\" -ArgumentList $path,$start
Code:
Start-Process -Credential $credential -FilePath "C:\Program Files (x86)\a5V12 Runtime\alpha5.exe" -WorkingDirectory "C:\Program Files (x86)\a5V12 Runtime\" -ArgumentList $path,$start
Code:
DIM path AS C DIM startup AS C DIM cmd AS C path = "\\server\alpha\data base.adb" startup = stritran(path,".adb",".startup") 'chr(92) = backslash which is needed to format the cmd string as needed by runas.exe due to spaces in paths 'the following line generates this string: 'runas.exe /user:swc\alpha /savecred "\"C:\Program Files (x86)\a5V12\alpha5.exe\" \"\\server\alpha\data base.adb\" \"-INCLUDE=\"\\server\alpha\data base.startup\"\"" cmd = "runas.exe /user:swc\alpha /savecred \"" + chr(92) + "\"C:\Program Files (x86)\a5V12\alpha5.exe" + chr(92) + "\" " + chr(92) + "\"" + path + chr(92) + "\" " + chr(92) + "\"-INCLUDE=" + chr(92) + "\"" + startup + chr(92) + "\"" + chr(92) + "\"\"" run(cmd,.F.)
Code:
DIM path AS C DIM startup AS C DIM cmd AS C path = "\\server\alpha\data base.adb" startup = stritran(path,".adb",".startup") 'chr(92) = backslash which is needed to format the cmd string as needed by runas.exe due to spaces in paths 'the following line generates this string: 'runas.exe /user:swc\alpha /savecred "\"C:\Program Files (x86)\a5V12 Runtime\alpha5.exe\" \"\\server\alpha\data base.adb\" \"-INCLUDE=\"\\server\alpha\data base.startup\"\"" cmd = "runas.exe /user:swc\alpha /savecred \"" + chr(92) + "\"C:\Program Files (x86)\a5V12 Runtime\alpha5.exe" + chr(92) + "\" " + chr(92) + "\"" + path + chr(92) + "\" " + chr(92) + "\"-INCLUDE=" + chr(92) + "\"" + startup + chr(92) + "\"" + chr(92) + "\"\"" run(cmd,.F.)
Comment