I did a quick search here (as well as Google) but didn't find the specific answer I'm looking for.
I'm creating a simple setup.exe which will be put onto non-writable media and distributed. However, this executable will be placed in a directory structure where it must reference a set of files outside of its parent folder (but still on the read-only media) and copy them to the target system. It cannot be bundled into the setup.exe package itself since the contents of that outside folder may change depending on the marketed variation of the product and my .exe will need to accommodate any scenario.
I understand now that the Copy / Move Local File function won't work in MSICode. However, there has to be a way to do this. It just seems like such a basic function.
Creating these installer packages is outside of my area of expertise (I'm a systems / network admin, not a developer) but I've been tasked to do this for some reason. Perhaps I've overlooked something obvious?
How to copy files from install media
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Re: How to copy files from install media
Why won't Copy / Move Local File work for you? Are you recursing subdirectories?
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Re: How to copy files from install media
From what I gathered from the application help, isn't the Copy / Move Local File operation designed to work on objects which already exist on the target system? I'd assume the original install media (CD, flash drive, etc.) be exempt from this definition.
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Re: How to copy files from install media
Since the media is already mounted, it is included, not exempt
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Re: How to copy files from install media
Thanks for clarifying that. After figuring out through additional searches that the Apply Change / Apply Install command needs to be set afterward, I finally got it working. However, I ultimately needed to copy files from a relative path (..\some\other\dir) and read on another thread that this is currently not supported in IA9, which is kind of a bummer. In my case, it turned out that for my project it wasn't necessary to perform that operation anyway, so I lucked out.
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Re: How to copy files from install media
You can always use the path manipulation commands in InstallAware to move up to higher level folders.
That said, the posts on this forum regarding relative paths are all pertaining to compile time paths. Windows Installer may support relative paths in the Copy/Move Local Files command, if it does, InstallAware would be supporting it too.
That said, the posts on this forum regarding relative paths are all pertaining to compile time paths. Windows Installer may support relative paths in the Copy/Move Local Files command, if it does, InstallAware would be supporting it too.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Who is online
Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 86 guests