Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CopyFiles too late

I need to copy files as soon as my MSI is clicked. I'm using CopyFiles function at the minute but it is not doing it quickly enough. Do I need my own custom action or is there a way to move it before any UI is shown?

Thanks

like image 919
Natalie Carr Avatar asked Dec 01 '25 09:12

Natalie Carr


1 Answers

Anything done with reg files and ini files can generally be embedded and done inside the MSI instead. This is hugely superior since the MSI file will then feature built-in rollback support if the installation of the MSI is aborted.

Installshield provides its own setup.exe launcher file which is not actually an MSI file at all, and it is this file that puts such temporary files in place on the system. It's a legacy feature from before the MSI days, and it essentially allows poor MSI design above anything else.

As Chris points out an MSI file should not perform file operations and system changes until its install sequence is launched (the actions between InstallInitialize and InstallFinalize in the InstallExecuteSequence inside the MSI).

I would recommend putting the ini file information in the IniFile table, and the registry information in the Registry table. Are you running EXE files as part of your installation sequence?

like image 169
Stein Åsmul Avatar answered Dec 04 '25 22:12

Stein Åsmul