caspol
The application is an in-house developed. When the application is uninstalled the package needs to run the command below post-uninstall C:\Windows\Microsoft.NET\Framework\v2.0.50727\CasPol.exe -polchgprompt off -m -rg "legal" -polchgprompt off
The custom action to do it does not work. The error is 2727 which is an error related to directory. Not sure what is wrong. Below are some details of the custom action.
Working Directory - WindowsFolder\Microsoft.NET\Framework\v2.0.50727\
File Name and command line - caspol.exe -polchgprompt off -m -rg "legal" -polchgprompt off
Return Processing - Synchronous (Check exit code)
In-Script execution - Deferred Execution
Install Exec Sequence - After InstallExecute
Install Exec Condition - REMOVE
The custom action to do it does not work. The error is 2727 which is an error related to directory. Not sure what is wrong. Below are some details of the custom action.
Working Directory - WindowsFolder\Microsoft.NET\Framework\v2.0.50727\
File Name and command line - caspol.exe -polchgprompt off -m -rg "legal" -polchgprompt off
Return Processing - Synchronous (Check exit code)
In-Script execution - Deferred Execution
Install Exec Sequence - After InstallExecute
Install Exec Condition - REMOVE
0 Comments
[ + ] Show comments
Answers (14)
Please log in to answer
Posted by:
timmsie
14 years ago
error 2727 relates to the directory path not existing in the directory table.
what type of custom action are you using?
http://msdn.microsoft.com/en-us/library/aa372048%28VS.85%29.aspx
if it's a 34 then you need the entry in the directory table
what type of custom action are you using?
http://msdn.microsoft.com/en-us/library/aa372048%28VS.85%29.aspx
if it's a 34 then you need the entry in the directory table
Posted by:
jimcox
14 years ago
Posted by:
anonymous_9363
14 years ago
You have misunderstood the response and you have contradicted yourself.
Your original post states that the EXE's called from 'WindowsFolder\Microsoft.NET\Framework\v2.0.50727\ ' whereas now you say it's called from just the Windows folder.
Look up your Custom Action's 'Type' value. If it's '34', then you will need to add the entire path to the executable as entries in the Directory table. Pretty much exactly what is says for the MSDN entry that Timmsie posted.
Your original post states that the EXE's called from 'WindowsFolder\Microsoft.NET\Framework\v2.0.50727\ ' whereas now you say it's called from just the Windows folder.
Look up your Custom Action's 'Type' value. If it's '34', then you will need to add the entire path to the executable as entries in the Directory table. Pretty much exactly what is says for the MSDN entry that Timmsie posted.
Posted by:
Rheuvel
14 years ago
Posted by:
jimcox
14 years ago
Posted by:
anonymous_9363
14 years ago
So it's a Type 34, in the deferred execute sequence (1058 - 1024 = 34, where 1024 means it's in DE sequence). So, you need to ensure that the Directory table contains entries - with the correct parents set - for all the folders in the path, i.e. a row for WindowsFolder (which should already be present!), one for 'Microsoft', one for '.NET\Framework' and one for 'v2.0.50727'.
Posted by:
Rheuvel
14 years ago
Hmm, you do have a type 34 CA then.
As you also specified In-Script execution - Deferred Execution (info in first post), this will give the type column a value of 1024.
1058 - 1024 = 34.
So what you can do is either add the whole path to your directory table, or modify your CA to type 50. (also see THIS list again)
[edit]
VBScab.. damn you... again :p
As you also specified In-Script execution - Deferred Execution (info in first post), this will give the type column a value of 1024.
1058 - 1024 = 34.
So what you can do is either add the whole path to your directory table, or modify your CA to type 50. (also see THIS list again)
[edit]
VBScab.. damn you... again :p
Posted by:
Rheuvel
14 years ago
Posted by:
jimcox
14 years ago
Modified the CA type to 1074 (1074-1024=50). The uninstall failed and did a rollback, here is the log
MSI (s) (DC:A4) [10:52:58:901]: Note: 1: 2262 2: Error 3: -2147287038
MSI (s) (DC:A4) [10:53:08:120]: Note: 1: 2262 2: Error 3: -2147287038
MSI (s) (DC:A4) [10:53:08:120]: Product: VendorApp2.2 -- Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: CaspolPostUninstall, location: , command: caspol.exe -polchgprompt off -m -rg "legal" -polchgprompt off
Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: CaspolPostUninstall, location: , command: caspol.exe -polchgprompt off -m -rg "legal" -polchgprompt off
MSI (s) (DC:A4) [10:52:58:901]: Note: 1: 2262 2: Error 3: -2147287038
MSI (s) (DC:A4) [10:53:08:120]: Note: 1: 2262 2: Error 3: -2147287038
MSI (s) (DC:A4) [10:53:08:120]: Product: VendorApp2.2 -- Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: CaspolPostUninstall, location: , command: caspol.exe -polchgprompt off -m -rg "legal" -polchgprompt off
Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: CaspolPostUninstall, location: , command: caspol.exe -polchgprompt off -m -rg "legal" -polchgprompt off
Posted by:
Rheuvel
14 years ago
Posted by:
jimcox
14 years ago
No luck, I am still trying.
Also, this custom action can be done by a vbs calling the exe with the switches. The switch has spaces as well as double quotes (CasPol.exe -polchgprompt off -m -rg "legal" -polchgprompt off). What will be the vbs statement for switches that have space and a double quotes?
Also, this custom action can be done by a vbs calling the exe with the switches. The switch has spaces as well as double quotes (CasPol.exe -polchgprompt off -m -rg "legal" -polchgprompt off). What will be the vbs statement for switches that have space and a double quotes?
Posted by:
anonymous_9363
14 years ago
Posted by:
Rheuvel
14 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.