/build/static/layout/Breadcrumb_cap_w.png

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

0 Comments   [ + ] Show comments

Answers (14)

Posted by: timmsie 13 years ago
Fourth Degree Brown Belt
0
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
Posted by: jimcox 13 years ago
Orange Belt
0
I am calling the exe from windows folder, the path is in my first post. am not using vbs. thanks for your time.
Posted by: anonymous_9363 13 years ago
Red Belt
0
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.
Posted by: Rheuvel 13 years ago
Brown Belt
0
Hi jimcox,

Could you give us some additional information?
If you look directly in the CustomAction table of your MSI, what value does the Type column of your CA have?
Posted by: jimcox 13 years ago
Orange Belt
0
Sorry for the confusion on the directory, it is WindowsFolder\Microsoft.NET\Framework\v2.0.50727\

The value of Type column for this CA is "1058", Source is "WindowsFolder\Microsoft.NET\Framework\v2.0.50727\" and target is "caspol.exe -polchgprompt off -m -rg "legal" -polchgprompt off"
Posted by: anonymous_9363 13 years ago
Red Belt
0
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 13 years ago
Brown Belt
0
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
Posted by: timmsie 13 years ago
Fourth Degree Brown Belt
0
hang on, isn't that what I said 5 posts ago! [;)]
Posted by: Rheuvel 13 years ago
Brown Belt
0
You did, but we obviously needed another approach to get this verified ;)
Posted by: jimcox 13 years ago
Orange Belt
0
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
Posted by: Rheuvel 13 years ago
Brown Belt
0
The location is blank. Have you specified a property with the correct path?
Posted by: jimcox 13 years ago
Orange Belt
0
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?
Posted by: anonymous_9363 13 years ago
Red Belt
0
If the bare command doesn't work, moving it to a VBS won't magically make it do so, so I'd forget the VBS route.

Have you done any of the work in fixing-up your Directory table?
Posted by: Rheuvel 13 years ago
Brown Belt
0
I have to agree with that. Just stick with the type 34 CA and fill the directory table.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ