I would like to install a different file version depending on the presence of a file next to my install exe file.
So far with the doc help I have gone to this:
- I have created an install property CRM_V8 with default value to 0
- I have set a custom action of type inline script like this:
Code: Select all
Set objFSO = CreateObject("Scripting.FileSystemObject")
If objFSO.FileExists(Session.Property("SETUPEXEDIR") & "CRMobileForCRMv8.txt") Then
Session.Property("CRM_V8") = "1"
End If- I have put my custom action just after CostInitialize in action sequence
But whatever if the file is present or not, the same file is copied.
I have checked in the log, the property is correctly set but it changes anything.
Here is a part of this log:
Début de l'action: 14:53:39: ExecuteScriptCode.
MSI (s) (8C!0C) [14:53:39:723]: PROPERTY CHANGE: Modifying CRM_V8 property. Its current value is '0'. Its new value: '1'.
L'action s'est terminée à 14:53:39: ExecuteScriptCode. Valeur de retour: 0
MSI (s) (8C:0C) [14:53:39:726]: Skipping action: AI_PREPARE_UPGRADE (condition is false)
MSI (s) (8C:0C) [14:53:39:726]: Doing action: InstallValidate
Action 14:53:39: InstallValidate. Validation de l'installation
Début de l'action: 14:53:39: InstallValidate.
MSI (s) (8C:0C) [14:53:39:728]: PROPERTY CHANGE: Deleting MsiRestartManagerSessionKey property. Its current value is 'b803ee5a00ac55439b6c108bda484226'.
MSI (s) (8C:0C) [14:53:39:728]: Feature: MainFeature; Installed: Absent; Request: Local; Action: Local
MSI (s) (8C:0C) [14:53:39:728]: Component: CRMobile.dll_2; Installed: Absent; Request: Local; Action: Null
MSI (s) (8C:0C) [14:53:39:728]: Component: CRMobile.dll_1; Installed: Absent; Request: Local; Action: Local
Thanks for your help.
FOLLOW US
Get the latest news in Application Packaging