- Messages
- 1,585
- Country
I am beta testing my installer and I am using the Windows registry AppPath key to check if P3Dv4 is indeed installed. I am using:
HKEY_CURRENT_USER\Software\Lockheed Martin\Prepar3d v4
Key=AppPath
which I read here seems to be the standard way to check. My installer works fine with my testers except one. He installed his P3Dv4 at:
'C:\Program Files\Lockheed Martin\Prepar3D v4\'
and my installer gives an error message that P3Dv4 cannot be found? My code to check is fairly simple (PowerShell):
If ((AI_GetMsiProperty CHECKBOX_P3DV4_PROP -eq "CheckBox") -and (AI_GetMsiProperty P3DV4_INSTALL_PATH -eq ""))
basically says if the P3Dv4 checkbox is 'checked' and the AppPath is "empty" then it will throw the error. But his AppPath is not empty. Could it be some Windows security preventing the installer to check?
On a side note, I tried re-creating the issue on my PC and discovered I cannot create a folder in my C:\Program Files folder? I get 'Access is denied' and I'm the Aministrator. Same issue? .... HELP!
HKEY_CURRENT_USER\Software\Lockheed Martin\Prepar3d v4
Key=AppPath
which I read here seems to be the standard way to check. My installer works fine with my testers except one. He installed his P3Dv4 at:
'C:\Program Files\Lockheed Martin\Prepar3D v4\'
and my installer gives an error message that P3Dv4 cannot be found? My code to check is fairly simple (PowerShell):
If ((AI_GetMsiProperty CHECKBOX_P3DV4_PROP -eq "CheckBox") -and (AI_GetMsiProperty P3DV4_INSTALL_PATH -eq ""))
basically says if the P3Dv4 checkbox is 'checked' and the AppPath is "empty" then it will throw the error. But his AppPath is not empty. Could it be some Windows security preventing the installer to check?
On a side note, I tried re-creating the issue on my PC and discovered I cannot create a folder in my C:\Program Files folder? I get 'Access is denied' and I'm the Aministrator. Same issue? .... HELP!