Click here to Skip to main content
15,923,273 members
Home / Discussions / Work Issues
   

Work Issues

 
QuestionTwo observations Pin
ha_ha_ha23-Sep-05 1:46
ha_ha_ha23-Sep-05 1:46 
QuestionUpdated Control Library Pin
Kutlu Arasli23-Sep-05 1:16
Kutlu Arasli23-Sep-05 1:16 
QuestionOrion Network Performance Monitor Pin
Member 83853719-Sep-05 2:41
Member 83853719-Sep-05 2:41 
AnswerRe: Orion Network Performance Monitor Pin
S Douglas30-Nov-05 21:55
professionalS Douglas30-Nov-05 21:55 
QuestionMCAD, How hard Pin
Asad Hussain12-Sep-05 10:49
Asad Hussain12-Sep-05 10:49 
AnswerRe: MCAD, How hard Pin
Colin Angus Mackay12-Sep-05 11:31
Colin Angus Mackay12-Sep-05 11:31 
QuestionCreating msi packages in .net Pin
Andrew Porter8-Sep-05 1:33
Andrew Porter8-Sep-05 1:33 
AnswerRe: Creating msi packages in .net Pin
rwestgraham12-Sep-05 12:02
rwestgraham12-Sep-05 12:02 
There are ways to modify certain types of files during an uninstall and roll back these changes during an uninstall, but they all require an intimate knowledge of msi architecture and are beyond the scope of what you can do in the VS IDE.

So, yes, your best option is to create a custom action. However, the exact procedure you choose depends a lot on what type of file you are working with and what kind of chnages you plan to make.

For example, if you plan to create a custom action using an Installer class, you may not always get the results you expect. Suppose you decide a simple approach is to create an Installer class custom action that copies the file in question to some temporary location and simply copies it back to the Common folder during uninstall. This will not work as you expect, because Installer class based custom actions are run at the end of the install. This means the original file has already been replaced during the installation, so what would happen is you would copy the new file to the temporary copy, then restore the new file again, effectively accomplishing nothing different than marking the file permanent.

So an alternative would be to simply not install the file at all. Instead write a custom action that amends the existing file with your changes, then removes those changes from the amended file during uninstall. This approach is viable if the file is a simple text file etc. but would be pretty difficult to implement if the file is binary.

Depending on what exactly you need to do, you may need to embed the custom action as a DLL rather than using the NET Installer class. This is a lot more flexible approach - you can for example control exactly when the custom action executes, you are not limited to an action that always runs at the end of the sequence.

Post some more details and maybe I can offer some specific suggestions.
GeneralRe: Creating msi packages in .net Pin
Andrew Porter13-Sep-05 0:42
Andrew Porter13-Sep-05 0:42 
GeneralRe: Creating msi packages in .net Pin
rwestgraham13-Sep-05 7:56
rwestgraham13-Sep-05 7:56 
QuestionAbout VC++ Resume : Plz Help Pin
parims8-Sep-05 0:36
parims8-Sep-05 0:36 
AnswerRe: About VC++ Resume : Plz Help Pin
Christian Graus12-Sep-05 12:52
protectorChristian Graus12-Sep-05 12:52 
GeneralRe: About VC++ Resume : Plz Help Pin
vikas amin5-Oct-05 3:26
vikas amin5-Oct-05 3:26 
QuestionResume reference needed! Pin
LiYS4-Sep-05 16:05
LiYS4-Sep-05 16:05 
AnswerRe: Resume reference needed! Pin
Yulianto.13-Sep-05 0:23
Yulianto.13-Sep-05 0:23 
QuestionIs it normal ? Pin
dharani25-Aug-05 22:11
dharani25-Aug-05 22:11 
AnswerRe: Is it normal ? Pin
Duncan Edwards Jones25-Aug-05 22:33
professionalDuncan Edwards Jones25-Aug-05 22:33 
GeneralRe: Is it normal ? Pin
dharani25-Aug-05 23:02
dharani25-Aug-05 23:02 
AnswerRe: Is it normal ? Pin
Sarvesvara (BVKS) Dasa27-Aug-05 1:42
Sarvesvara (BVKS) Dasa27-Aug-05 1:42 
AnswerRe: Is it normal ? Pin
ThatsAlok2-Sep-05 22:55
ThatsAlok2-Sep-05 22:55 
AnswerRe: Is it normal ? Pin
toxcct3-Sep-05 0:45
toxcct3-Sep-05 0:45 
AnswerRe: Is it normal ? Pin
Christian Graus4-Sep-05 16:10
protectorChristian Graus4-Sep-05 16:10 
AnswerRe: Is it normal ? Pin
ACMJ14-Sep-05 10:08
ACMJ14-Sep-05 10:08 
AnswerRe: Is it normal ? Pin
rohanr2p18-Sep-05 22:37
rohanr2p18-Sep-05 22:37 
AnswerRe: Is it normal ? Pin
vikas amin5-Oct-05 3:41
vikas amin5-Oct-05 3:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.