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.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Dynamic copy file if present in source directory
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 29, 2017
04:10 AM
Dynamic copy file if present in source directory
Hi everybody,
I want dynamic copy file if present in sourcedir (MSI dir at run install).
With custom property SRC for file name (or folder name).
With Powershell embedded script is ok :
But it's possible without script ?
Nativley with MoveFiles action ?
Thanks 🙂
I want dynamic copy file if present in sourcedir (MSI dir at run install).
With custom property SRC for file name (or folder name).
With Powershell embedded script is ok :
$src = Get-Property -Name SRC
$dst = Get-Property -Name DST
$src = Join-Path (get-property -name SOURCEDIR) $src
if((Test-Path "$src")) {
Copy-Item "$src\" "$dst" -Recurse
}
But it's possible without script ?
Nativley with MoveFiles action ?
Thanks 🙂
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 01, 2017
10:00 AM
Have you tried the Dynamic Linking? It allows you to specify a "Source folder" and optionally subfolders. You can specify if you want it to include all files (*.*) or you can include and exclude files based on wild-card patterns.
I do not recommend Dynamic Linking in general for all the files in your project since you lose a lot of control and Microsoft does not support Dynamic Linking, but for an individual file like this that may or may not be present in the source folder might make sense to look into it.
Chad
I do not recommend Dynamic Linking in general for all the files in your project since you lose a lot of control and Microsoft does not support Dynamic Linking, but for an individual file like this that may or may not be present in the source folder might make sense to look into it.
Chad