Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Remove files in Minor upgrade


7 replies to this topic

maxk

maxk
  • Full Members
  • 38 posts

Posted 12 June 2015 - 19:44

Hello,

 

I'm trying to remove the files using a minor upgrade (unfortunately, I can't use a major upgrade).

I need to remove two files in the system32 so I created  a record to RemoveFile table (Direct Editor).

I first created a new component (dump with no file in) called "deletemyfiles" so I can enter component name in the removefile table.

Do I must have a component?

 

File Key: deletefiles

Component: deletemyfiles

FileName: remove.dll

DirProperty: SystemFolder

InstallMode: 3

 

I'm not sure why but the files don't get deleted.

I wrote the steps to create a minor upgrade below in case if I missed anything. 

 

-------------------------------------------------------------------------------

Install_1: Full build
Install_2: Minor upgrade
 
1. Created a install_1 setup.eunxe (using single executable).
2. Minor upgrade
    - Used the install_1 MSI file to create a minor upgrade.
    - Go to Media\Upgrades\upgrade windows Installer setup
    - Deleted the existing major upgrade items including "ISPreventDowngrade"
    - Added a minor upgrade item and opened "Setup To Upgrade" to install_1 setup.exe (step 1)
       and set "Release Flags" to Full 
    - Changed a product version, subject name, package code.
----------------------------------------------------------------------------------

 

Installshield 2012 and Basic MSI

 

Thanks,

M


Edited by maxk, 12 June 2015 - 19:48.


gmpk82

gmpk82
  • Full Members
  • 40 posts

Posted 16 June 2015 - 19:47

your requirement is just 2 files need to be removed from system32, OK, write a custom action and delete them,maintain a installer log for delete operation. don't screw up the project file.



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 18 June 2015 - 17:10

Did you make sure your deletemyfiles component is actually selected for installation? Actually you don't need a new component for this, you can use an existing component to trigger the file removal.



maxk

maxk
  • Full Members
  • 38 posts

Posted 22 June 2015 - 15:17

Hi, 

 

Actually, 2 files that I wanted to delete was from a merge module (install_1) so I made a transitive component in the merge module.

Everything works fine but still couldn't remove files in the WinSYS directory.

 

Thanks both,

M


Edited by maxk, 22 June 2015 - 15:18.


gmpk82

gmpk82
  • Full Members
  • 40 posts

Posted 25 June 2015 - 08:40

probably u made both of them as perminent, check once.



maxk

maxk
  • Full Members
  • 38 posts

Posted 26 June 2015 - 19:49

Permanent was set to "No" and Win32 assembly was included.

Actually, this merge module was downloaded from Microsoft.

 

Thanks.



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 03 July 2015 - 16:59

In general, files in the System directory shouldn't be removed because only system (and like) files should be installed there.



maxk

maxk
  • Full Members
  • 38 posts

Posted 08 July 2015 - 15:53

Thanks Stefan!


Edited by maxk, 08 July 2015 - 15:53.