Hi All,
Right before the end of the installation I had the Below right under the Compiler End:
The idea was to copy some files to one folder after it was installed already. The folder never was created and nothing was copied.
Create Folder $TARGETDIR\\Distribution
Copy local files $WINSYSDIR$\\Richtx32.OCX to $TARGETDIR\\Distribution\\Richtx32.OCX
Appreciate any feedback.
Regards,
Edhy
Copy command does not work for me
Copy command does not work for me
Edhy Rijo
Thom Child and Family Services
Thom Child and Family Services
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Do these come after Apply Install? That would explain why they do not execute.
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/
Copy local files
Hi,
I have this code after the following:
Apply Install
If Variable SUCCESS not Equals ERROR
Some Code...
Endif
[Compiler End]
Create Folder $TARGETDIR\\Distribution
Copy local files $WINSYSDIR$\\Richtx32.OCX to $TARGETDIR\\Distribution\\Richtx32.OCX
So I guess it should before the Apply Install Command.
Thanks,
Edhy
I have this code after the following:
Apply Install
If Variable SUCCESS not Equals ERROR
Some Code...
Endif
[Compiler End]
Create Folder $TARGETDIR\\Distribution
Copy local files $WINSYSDIR$\\Richtx32.OCX to $TARGETDIR\\Distribution\\Richtx32.OCX
So I guess it should before the Apply Install Command.
Thanks,
Edhy
Edhy Rijo
Thom Child and Family Services
Thom Child and Family Services
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Exactly. OR, you can just directly execute those last two actions by Win32 API calls - through the Call DLL Function command.
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/
Copy Local Files
Hi,
1)
Moving the code up above the Apply Install command worked partially.
This line copied the file as expected and that is from Windows\\System32:
Copy local files $WINSYSDIR$\\Richtx32.OCX to $TARGETDIR$\\Distribution\\Richtx32.OCX
But this line did not copy any file from the target folder. That file is found in the root of the installation folder. Any idea how to fix it?
Copy local files $TARGETDIR$\\eReports.dll to $TARGETDIR$\\Distribution\\eReports.dll
2)
When I Un Install I would like to remove all files that were created by the application later on or Copied as described above. I entered the following code right above the Apply Uninstall and it did no do it. Please advise.
Delete Files $TARGETDIR$ \\*.* (when uninstalling)
Regards,
Edhy
1)
Moving the code up above the Apply Install command worked partially.
This line copied the file as expected and that is from Windows\\System32:
Copy local files $WINSYSDIR$\\Richtx32.OCX to $TARGETDIR$\\Distribution\\Richtx32.OCX
But this line did not copy any file from the target folder. That file is found in the root of the installation folder. Any idea how to fix it?
Copy local files $TARGETDIR$\\eReports.dll to $TARGETDIR$\\Distribution\\eReports.dll
2)
When I Un Install I would like to remove all files that were created by the application later on or Copied as described above. I entered the following code right above the Apply Uninstall and it did no do it. Please advise.
Delete Files $TARGETDIR$ \\*.* (when uninstalling)
Regards,
Edhy
Edhy Rijo
Thom Child and Family Services
Thom Child and Family Services
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Please read the help topic titled "Setup Commands Preceding Apply Uninstall". This addresses your exact issue.
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/
Copy command worked partially
Hi Michael,
What about item 1 where it worked only partially? (The Copy command) and that is NOT an Un Install.
Regards,
Edhy
What about item 1 where it worked only partially? (The Copy command) and that is NOT an Un Install.
Regards,
Edhy
Edhy Rijo
Thom Child and Family Services
Thom Child and Family Services
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
You are trying to copy the local file before it gets put into place by the Install Files command - so that is why that didn't work.
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/
Copy local file
Hi Michael,
That's not really the case regarding the Copy Local Files.
I entered the Copy Local Files after all the Install Files command, as I said only the files from the System32 folder were successfully copied from some reason.
The Copy Local Files command are right above the Apply Install.
Is there something else that I am missing?
Thanks,
Edhy
That's not really the case regarding the Copy Local Files.
I entered the Copy Local Files after all the Install Files command, as I said only the files from the System32 folder were successfully copied from some reason.
The Copy Local Files command are right above the Apply Install.
Is there something else that I am missing?
Thanks,
Edhy
Edhy Rijo
Thom Child and Family Services
Thom Child and Family Services
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Re: Copy local file
Edhy wrote:That's not really the case regarding the Copy Local Files.
Actually, it is. Please read this whitepaper to find out why:
www.installaware.com/msicode_scripting_technology.pdf
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: No registered users and 40 guests