This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Ivan_mysammy
Level 4
- Revenera Community
- :
- About Ivan_mysammy
Oct 05, 2010
01:17 PM
Rouslan wrote: You can set any component. For examle: FileKey: MyRandomKey123 (any uniq key for RemoveFile table) Component_: MyExistingComponent (any existing component) FileName: myFileToDelete.tmp (exact file name) DirProperty: MYDIRECTORY (directory key from Directory table for your file location) InstallMode: 2 (Remove only when the associated component (MyExistingComponent) is being removed) Thanks Rouslan, your method works!
... View more
Oct 05, 2010
01:14 PM
is this file copied to target machine by installer or generated by application? you can try to edit removefile table in direct editor if you know the name of the file to be removed.
... View more
Oct 05, 2010
01:07 PM
joshstechnij wrote: Any custom actions that modify the system need to be sequenced somewhere between InstallInitialize and InstallFinalize in the install execute sequence. In addition, the "In-Script Execution" setting needs to be set to "Deferred in System Context". This will run the custom action with elevated privileges in most normal cases. If the action is not configured this way, and the action attempts to modify any per-machine resources, it will fail on Windows Vista or newer when UAC is enabled. Thanks for answering my question. You are right! I just found this reason. I lacked knowledge when posted this thread
... View more
Oct 05, 2010
01:03 PM
This problem resolved, let me finish the thread. Simply speaking, I should select "deffered excution in system context" instead of "immediate execution" for my deletedir custom action. In addition, create another immediate execution custom action to pass INSTALLDIR property value to "CustomAction Data", because only limited properties can be access during deffered excution. Thus, UAC message popup when installscript is running, then installscript works. the reason of why it works in debug way is you already have administrator previllage running InstallShield, so the UAC was surpassed. I guess this is the most common way to delete install directory and all its contents after uninstall if there are lots of files not generated by installer. Although the method is simple, it still took me few days to find it. Hope it helps.
... View more
Oct 01, 2010
04:49 PM
More clues: above installscript works when uninstall through commend line execution with administrater previllage. above installscript works on 32bit installer at 32bit machine. So I probably find the reason but not the solution. the UAC on windows NT after vista stops my installscript custom action remove files, so i need to surpass UAC or programaticly assign administrator previllage to the installer. BTW, i dont want additional files add to the installer like a XML manifest. Now it looks like this is a common issue for custom action deleting files on 64 bit windows. the reason that i dont use "removefile table" is the files to be removed has random names, which cannot be defined in advance.
... View more
Oct 01, 2010
02:37 PM
the purpose of my installscript is to delete application root folder and all its contents. when uninstall the application: If run my insytaller in InstallShield IDE by enter "F5", following installscript works and return messagebox showing "** was deleted"; but if i run the compiled **.msi file for uninstall, messagebox return "Unable to delete directory". It seems very weird. Developing environment: OS: windows server 2008 R2 InstallShield version: 2011 Installscript code: function Fn_DeleteDir(hMSI) STRING strInstallDir; NUMBER nSize; begin nSize = 256; MsiGetProperty(hMSI,"INSTALLDIR",strInstallDir,nSize); if (DeleteDir (strInstallDir, ALLCONTENTS) = 0) then // Report success. MessageBox (strInstallDir + " was deleted.", INFORMATION); else MessageBox ("Unable to delete directory.", SEVERE); endif; end; another thread report a similar issue: http://community.flexerasoftware.com/showthread.php?t=58380
... View more
Labels
- Labels:
-
InstallShield 2011
Oct 01, 2010
10:55 AM
K0NFUZIUS wrote: Hi srweisner, thanks a lot that helped me out. I tried to register a 64 Bit dll in a 32Bit installation in Basic Msi. The registration didn't worked so I decided to call regsvr32 from an Custom Action and that worked perfectly. #define REGSVR64 "\""+WINSYSDIR64^"REGSVR32.EXE"+"\"" #define REGSVR64RegParam "/s \""+INSTALLDIR^"x64"^"Lib.dll"+"\"" #define REGSVR64UnRegParam "/u /s" + " \"" + INSTALLDIR^"x64"^"Lib.dll"+"\"" function register64BitPropertyHandler(hInstall) begin Disable (WOW64FSREDIRECTION); LaunchAppAndWait( REGSVR64, REGSVR64RegParam, NOWAIT ); Enable (WOW64FSREDIRECTION); end; function unregister64BitPropertyHandler(hInstall) begin Disable (WOW64FSREDIRECTION); LaunchAppAndWait( REGSVR64, REGSVR64UnRegParam, NOWAIT ); Enable (WOW64FSREDIRECTION); end; Thanks for your hint Jörg Could you let me know where you put the custom actions calling these two functions in execution sequence? Thanks
... View more
Sep 28, 2010
01:56 PM
Here's my solution: senario: delete INSTALLDIR folder, all its subfolder and files during uninstallation steps: 1. create an Installscript function: #include "Ifx.h" export prototype Fn_DeleteDir(HWND); function Fn_DeleteDir(hMSI) STRING strInstallDir; NUMBER nSize; begin nSize = 256; MsiGetProperty(hMSI,"INSTALLDIR",strInstallDir,nSize); DeleteDir (strInstallDir, ALLCONTENTS); end; 2. create a custom action to call above function, settings: Function Name: Fn_DeleteDir Return Processing: Synchronous In-Script Execution: Immediate Execution Execution Scheduling: Always execute Install Exec Sequence: After InstallFinalize Install Exec Condition: REMOVE = "ALL" leave other settings by default end steps. My installscript code is not strong enough and I am not sure the custom action settings are appropriate, anyway it works as I expect. reference: http://community.flexerasoftware.com/showthread.php?t=193676&highlight=remove+files
... View more
Sep 28, 2010
11:45 AM
Rouslan wrote: 1) You can use RemoveFile table if you know name of file to delete. (See msi help or MSDN) 2) Also you can use custom action. Rouslan, for the first method, how to set "Component" field in RemoveFile table? The file to be removed is not associated with any component, but generated by the application. Thanks
... View more
Sep 28, 2010
11:30 AM
Rouslan wrote: 1) You can use RemoveFile table if you know name of file to delete. (See msi help or MSDN) 2) Also you can use custom action. Thanks for your reply, Rouslan. It looks like installscript custom action works for my senario. I will try these two method and post my results later
... View more
Sep 27, 2010
08:12 PM
Hi, I have searched through the threads in this community, but still didn't find what I want. I guess there should be a very simple method to remove the files not created by the installer during uninstall, cuz this is a very common senario. Can anyone give me some idea? Thanks,
... View more
Labels
- Labels:
-
InstallShield 2011
Sep 24, 2010
05:21 PM
cindyj wrote: I think using MSIRESTARTMANAGERCONTROL to disable the restart manager has been the easiest thing to do but not the best. I know this is an old thread, but I met the same issue when using InstallShield 2011. Can you explain how to disable MSIRESTARTMANAGERCONTROL ? Cuz this property cannot be accessed through property manager. Do we need a MSI standard custom action to make it? Or maybe someone knows a better solution for current Installshield Version? Thanks
... View more
Sep 21, 2010
06:49 PM
RobertDickau wrote: I'm not aware of a built-in way to refresh a dialog box. The closest thing I'm aware of is to define two identical-looking dialogs, and switch between them when the user clicks Validate; this technique works in situations where clicking Next and then Back refreshes the values you want. (A word from our sponsor: This is one of the techniques discussed in our Advanced Windows Installer course.) Thanks Robert! It works perfect just like what i want. (ps: I have taken your MSI training course a couple of weeks ago, it helped. I hope i can have chance to take this advanced course sometime)
... View more
Sep 21, 2010
02:11 PM
Hi there, I have a DialogBox with Edit fields, a Text field and a "validate" button. it waits for user's input. I hope after clicking "validate" button it will return a value to be displayed on the Text field from custom action. However, the Text field cannot be refreshed itself after push button action. Therefore, my question is how to refresh or reload a dialogbox after an action. Thanks!
... View more
Labels
- Labels:
-
InstallShield 2011
Sep 14, 2010
04:36 PM
Ok, let me leave some useful information I collected, in case of anyone meeting my problem and need help. Reference: http://community.flexerasoftware.com/showthread.php?t=189714 see post #3 and #8 on above thread. In addition, "You still need to create mirrored (or parallel) feature trees (one 32 bit and one 64 bit) and set appropriate Release Flags for them. You then create duplicate components (with different GUIDS)—half 32 bit and half 64 bit, and associate them with the appropriate 32 bit or 64 bit features. Then you create 2 Configurations (One with a TemplateSummary of Intel;1033 one with x63;1033—assuming English only) with Releases under them that reference Release Flags from the Feature trees. Then you just build each release separately." I didn't try this solution, because I have already seperated the x32 and x64 to two projects before I saw it. I will come back to try this solution after finishing the current work. Hope this help and thanks Dan for offering the above solution.
... View more
Latest posts by Ivan_mysammy
Subject | Views | Posted |
---|---|---|
1731 | Oct 05, 2010 01:17 PM | |
947 | Oct 05, 2010 01:14 PM | |
1319 | Oct 05, 2010 01:07 PM | |
1319 | Oct 05, 2010 01:03 PM | |
1319 | Oct 01, 2010 04:49 PM | |
4638 | Oct 01, 2010 02:37 PM | |
2607 | Oct 01, 2010 10:55 AM | |
1731 | Sep 28, 2010 01:56 PM | |
1731 | Sep 28, 2010 11:45 AM | |
1731 | Sep 28, 2010 11:30 AM |
Activity Feed
- Posted Re: How to remove files and folders created by application during uninstall on InstallShield Forum. Oct 05, 2010 01:17 PM
- Posted Re: Why is there no attempt to uninstall a file when REMOVE=ALL on InstallShield Forum. Oct 05, 2010 01:14 PM
- Posted Re: my installscript custom action only works in debug mode on InstallShield Forum. Oct 05, 2010 01:07 PM
- Posted Re: my installscript custom action only works in debug mode on InstallShield Forum. Oct 05, 2010 01:03 PM
- Posted Re: my installscript custom action only works in debug mode on InstallShield Forum. Oct 01, 2010 04:49 PM
- Posted my installscript custom action only works in debug mode on InstallShield Forum. Oct 01, 2010 02:37 PM
- Posted Re: Installshield 2009 Installscript Support for 64 bit on InstallShield Forum. Oct 01, 2010 10:55 AM
- Posted Re: How to remove files and folders created by application during uninstall on InstallShield Forum. Sep 28, 2010 01:56 PM
- Posted Re: How to remove files and folders created by application during uninstall on InstallShield Forum. Sep 28, 2010 11:45 AM
- Posted Re: How to remove files and folders created by application during uninstall on InstallShield Forum. Sep 28, 2010 11:30 AM
- Posted How to remove files and folders created by application during uninstall on InstallShield Forum. Sep 27, 2010 08:12 PM
- Posted Re: How suppress the restart notification dialog in Vista on InstallShield Forum. Sep 24, 2010 05:21 PM
- Posted Re: How to reload a dialog dispaying a property value on InstallShield Forum. Sep 21, 2010 06:49 PM
- Posted How to reload a dialog dispaying a property value on InstallShield Forum. Sep 21, 2010 02:11 PM
- Posted Re: Both x32 version and x64 version products are in a single InstallShield project? on InstallShield Forum. Sep 14, 2010 04:36 PM
- Posted Both x32 version and x64 version products are in a single InstallShield project? on InstallShield Forum. Sep 10, 2010 01:53 PM
- Posted Re: Do we need to upgrade to VS.NET2010 to use IS2011 on InstallShield Forum. Aug 19, 2010 02:57 PM
- Posted Re: Maintenance Order Email on InstallShield Forum. Aug 19, 2010 02:47 PM
- Posted Do we need to upgrade to VS.NET2010 to use IS2011 on InstallShield Forum. Aug 19, 2010 02:16 PM
- Posted Re: How to install windows service and pass parameters to it on InstallShield Forum. Aug 17, 2010 12:50 PM
Contact Me
Online Status |
Offline
|
Date Last Visited |
Mar 18, 2019
12:10 PM
|