We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

SteveW
Posts: 6
Joined: Mon Nov 04, 2013 3:58 pm

Copy/overwrite file during install

Hi

I have an existing MSI that I am deploying with SCCM2012 which works fine apart from one issue and I'm wondering if Advanced Installer will help me to get it completely working.

The msi installs the application perfectly, but afterwards I have to manually replace a config file with the file that has the settings in for our company.

I know I could create a separate action within SCCM to do this, but I thought I'd try and do it a different way and make it part of the installer package so that one command just does everything I need,

Does anyone know if it's possible to add an action at the end of an installation that would overwrite the config file with the file that I need? I've been looking through the custom actions in Advanced Installer and I think I'm getting a bit lost!

Thanks in advance

Steve
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Copy/overwrite file during install

Hi Steve,

Can you please tell us why can't you deploy the config file among the installation package? If the file already exist, you can choose to overwrite it through the Operations tab from the File Properties Dialog.

Here's the Options to integrate and debug custom actions article which exemplify how you can integrate a custom action to the package.

Please let us know if that helped, otherwise give us more details about your specific scenario.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
SteveW
Posts: 6
Joined: Mon Nov 04, 2013 3:58 pm

Re: Copy/overwrite file during install

Hi Dan

I may not have made myself clear in the original post - the MSI I currently have was supplied by the software supplier. it's not something I've already packaged myself.

This works fine as mentioned but I was wondering if I could use Advanced Installer to create a package that is based around the original msi but that, as its last step of the installation, also copies and overwrites a config file that has the relevant details for our company's server in it rather than having to manually overwrite the file once the original msi has completed.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Copy/overwrite file during install

Hi Steve,

In this case, you can edit the .MSI and change the config file.

You can save the results as a new MSI package or you can save them as an MST (transform) file and apply the MST file when deploying the .MSI file. You can take a look on the Create and edit an MST file and on the Alternative to AdminStudio/Wise articles which may be useful to you.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
SteveW
Posts: 6
Joined: Mon Nov 04, 2013 3:58 pm

Re: Copy/overwrite file during install

Hi Dan

Many thanks for that. I have used your first option and edited the MSI and created a new one, with the new config file. And I also added a desktop icon at the same time.

Great stuff. Thanks for your help.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Copy/overwrite file during install

You're welcome Steve,

Thank you for your kind words.
If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”