After installation: Source file change when target change

Got a problem you cannot solve? Try here.
JeyKeyRey
Posts: 10
Joined: Wed May 22, 2013 6:12 am

After installation: Source file change when target change

Postby JeyKeyRey » Fri Nov 13, 2015 4:41 am

Installaware Studio X3.
When I manually change a file in the target folder, after installation, the file in the source folder change aswell.
What is the reason for that, and how can this be avoided. Restarting the computer does not help.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: After installation: Source file change when target chang

Postby FrancescoT » Fri Nov 13, 2015 12:38 pm

Dear JeyKeyRey,

could you please report the exact steps you used to replicate such behavior?

...I am not able to reproduce.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

JeyKeyRey
Posts: 10
Joined: Wed May 22, 2013 6:12 am

Re: After installation: Source file change when target chang

Postby JeyKeyRey » Thu Dec 17, 2015 8:31 am

Hi Francesco,

Sorry for not describing good enough, and for not answering before now...

Attached is a Picture of the simple code.

I have a program folder structure like this:

...\Program\Setup\Setup_Ver\Program

The Installaware Studio X3 made setup exe, running from the Setup_Ver folder, is copying files from the subfolder Program to the leftmost folder Program (targetfolder).
All Works fine, and the setup exe is closed.

When I want to run the setup once more, and manually copy old files into the leftmost Program folder, the same old files are "automatically" copied to the other Program folder too...

Hopefully this explanation will give you an understanding of the issue.

Regards
Attachments
Code_example.png
Code_example.png (173.79 KiB) Viewed 9839 times

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: After installation: Source file change when target chang

Postby FrancescoT » Fri Dec 18, 2015 6:38 am

Dear JeyKeyRey,

I am very very sorry, but I am still not able to have a clear picture of your problem.

Looking at your code, I can understand that you are trying to conditionally replace some files under your TARGETDIR.
However it's not clear when this operation is effectively sequenced in your setup script.
If the code you posted gets executed before to effectively "install other files" to your TARGETDIR, it may be possible this operation is overridden by the successive install files operations.

Furthermore your code snippets includes "Windows Installer" commands (PURPLE COMMANDS). Unless NATIVE ENGINE is explicitly used, those commands are not executed immediately, but deferred to Apply Install execution. Did you consider this scenario?
http://www.installaware.com/forum/viewtopic.php?f=2&t=4338&start=0

That said and due the above considerations, it's quite difficult for me to find out the real nature of your issue.

BTW, If you have any chance to release a very "VERY" minimal project that demonstrates the problem, I'll be happy to verify it.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

JeyKeyRey
Posts: 10
Joined: Wed May 22, 2013 6:12 am

Re: After installation: Source file change when target chang

Postby JeyKeyRey » Wed Jan 13, 2016 1:46 am

Thank you, Francesco, for answering

Now more of the code is Attached

IA-EXM1.pdf
(185.3 KiB) Downloaded 564 times


Regards

Jo Kåre

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: After installation: Source file change when target chang

Postby FrancescoT » Wed Jan 13, 2016 1:14 pm

Dear JeyKeyRey,

in reality I asked for a minimal project (IA project's files).

If you have problem to post it on the forum, please send it as compressed archive to; support@installaware.com

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

JeyKeyRey
Posts: 10
Joined: Wed May 22, 2013 6:12 am

Re: After installation: Source file change when target change

Postby JeyKeyRey » Wed May 18, 2016 2:16 am

Hi Francesco,

A new unwanted sideeffect og running the Project: When running the Project several times to update files on several locations, manually, afterwards, changing the Security Access rights on the files in one of the locations, the same Security settings are changed for the files on the other locations. This in addition to the substitutions of files mentioned earlier.

Attached is a zip of a Project,

Regards
Jo Kåre
Attachments
HKdata_project.zip
(3.43 MiB) Downloaded 676 times

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: After installation: Source file change when target change

Postby FrancescoT » Wed May 18, 2016 12:13 pm

Dear Jo Kåre,

I download your project, but it's not clear to me which is the problem you seem to have.
Could you please list the exact steps to follow in order to replicate the issue?

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

JeyKeyRey
Posts: 10
Joined: Wed May 22, 2013 6:12 am

Re: After installation: Source file change when target change

Postby JeyKeyRey » Mon May 23, 2016 4:01 am

Hi Francesco,

I have now attached to more files to help you reproduce the "problem":


- unzip HK velferd.zip (making HK velferd\Program\Setup)
- unzip HKvelferd_8.5.5.877_Setup.zip to HK velferd\Program\Setup (not dependent of a certain location, contains newer files for the HK velferd\Program folder)
- start HK velferd\Program\Setup\HKvelferd_8.5.5.877_Setup\HKvelferd_8.5.5.877_Setup.exe
- Choose "Oppgradere HK velferd program" and browse ("Søk") to the location HK velferd\Program, and click "OK"
- You will get a message describing what is updated in HK velferd\Program. (The content of HK velferd\Program\Setup\HKvelferd_8.5.5.877_Setup\Program is copied to HK velferd\Program.) Close ("Avslutt") the setup program
- So far, so good
- Manually changing the files in HK velferd\Program (to be able to run the installation once more for testing) will make the files change in HK velferd\Program\Setup\HKvelferd_8.5.5.877_Setup\Program too!!!! To test this, You can copy the old version of the file HK velferd.exe from HK velferd\Program\Arkiv to HK velferd\Program, and observe that the file is changed in HK velferd\Program\Setup\HKvelferd_8.5.5.877_Setup\Program too.

- If the installation is run to update files in more folders, adjusting security settings (access rights) on files in one folder, makes changes in the other folders too!!!

Hopefully this will be what you need.
Attachments
HKvelferd_8.5.5.877_Setup.zip
(9.33 MiB) Downloaded 569 times
HK velferd.zip
(7.13 MiB) Downloaded 540 times
Last edited by JeyKeyRey on Tue May 24, 2016 1:55 am, edited 1 time in total.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: After installation: Source file change when target change

Postby FrancescoT » Mon May 23, 2016 1:32 pm

Dear JeyKeyRey,

I am not able to replicate your steps. Once selected "Oppgradere HK velferd program" along with the "..\HK velferd\Program" location, I receive the following warning and this doesn't give any option to continue.
error.png
error.png (120.44 KiB) Viewed 9292 times

I am very sorry, but I cannot execute any verification in this way.

To make things easier, please release a very "very" minimal project from scratch which replicates the issue, along with minimal steps as possible in order to reproduce the issue.

Then send to me the entire IA project folder.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

JeyKeyRey
Posts: 10
Joined: Wed May 22, 2013 6:12 am

Re: After installation: Source file change when target change

Postby JeyKeyRey » Wed May 25, 2016 1:10 am

When you first unzip the HKvelferd.zip you will get these folders and files as Attached.

When running the setup and selecting "Oppgradere HK velferd program" and browsing to the Program folder as shown in the Attached gif, you will pass the test (HKvelferd.exe will be found) and the file is replaced.

Please, try again.

Regards,

Jo Kåre
Attachments
Skjermbilde.GIF
Skjermbilde.GIF (5.01 KiB) Viewed 9290 times

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: After installation: Source file change when target change

Postby FrancescoT » Wed May 25, 2016 12:37 pm

Dear Jo Kåre,

definitely, I am not able to replicate the issue you seem to have.

Once executed the "HKvelferd_8.5.5.877_Setup.exe" with selecting "Oppgradere HK velferd program" and browsing to the Program folder as you indicated, the existing "HKvelferd.exe" gets replaced by its new version as expected.

Then I have manually overwritten the "HKvelferd.exe" under the "..\HK velferd\Program" folder with its old version from the "HK velferd.zip" and this doesn't overwrite also the "HKvelferd.exe" under "..\HK velferd\Program\Setup\HKvelferd_8.5.5.877_Setup\Program".
results.png
results.png (372.21 KiB) Viewed 9276 times

Furthermore, manually changing the security attributes of a file are not propagated to the other file and viceversa.

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 128 guests