Change 'install into' type for selected assemblies at once

Got a problem you cannot solve? Try here.
jacek.profisoft
Posts: 4
Joined: Mon Apr 04, 2016 6:14 am
Location: Poznan, Poland
Contact:

Change 'install into' type for selected assemblies at once

Postby jacek.profisoft » Mon Apr 04, 2016 7:01 am

Hello!

Is it possible to change 'Install into' location for the group of selected assemblies at once in MSIcode/InstallAutogen panel? By default most libraries are installed into the GAC which is not what I want. Clicking on each single assembly and changing install location to $TARGETDIR$ or something else is very annoying and error prone.

If this cannot be done maybe there is a way to alter default IA behaviour so all libs would be installed by 'Install File' not by 'Install Assembly' command.

I'm using Install Aware 18.

Thanks.
Best regards
Jacek Trubłajewicz
Profisoft

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

Re: Change 'install into' type for selected assemblies at on

Postby FrancescoT » Mon Apr 04, 2016 1:23 pm

Dear Jacek,

You may load the project in InstallAware and then to use the "Find and Replace" option from the MSI code view to replace the $TARGETDIR$.

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

jacek.profisoft
Posts: 4
Joined: Mon Apr 04, 2016 6:14 am
Location: Poznan, Poland
Contact:

Re: Change 'install into' type for selected assemblies at on

Postby jacek.profisoft » Tue Apr 05, 2016 3:58 am

Hi Francesco!

Thanks for your advice but I'm afraid that 'Replace' works rather weird for me. Although I'm able to find lines containing specific phrase (like 'Install Assembly' or 'Global Assembly Cache' for example) with 'Find' tool, I'm not able to do the same with the 'Replace'. It simply finds nothing in the Install Autogen code so nothing can be replaced. Is this tool needs some kind of special trick to work?

Regardless to the provided solution I think that ability to change install place for all selected assemblies at once should be implemented by default.

Thanks.
Best regards
Jacek Trubłajewicz
Profisoft

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

Re: Change 'install into' type for selected assemblies at on

Postby FrancescoT » Tue Apr 05, 2016 9:02 am

Dear Jacek,

my "Find and Replace" suggestion was exclusively intended to the possibility of replacing command parameters (as TARGETDIR) ... this cannot be used to replace the command itself, of course.

I'll report your suggestion to our dev team anyway.

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

jacek.profisoft
Posts: 4
Joined: Mon Apr 04, 2016 6:14 am
Location: Poznan, Poland
Contact:

Re: Change 'install into' type for selected assemblies at on

Postby jacek.profisoft » Mon Apr 11, 2016 3:33 am

Hi Francesco!

I've created brief screencast that shows how my 'Replace' tool works.
http://screencast-o-matic.com/watch/cDfXjr1Ari
Best regards
Jacek Trubłajewicz
Profisoft

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

Re: Change 'install into' type for selected assemblies at on

Postby FrancescoT » Mon Apr 11, 2016 4:31 am

Dear Jacek,

as I have already said;

the "Find and Replace" tool is exclusively intended to replace command parameters (as TARGETDIR) or litteral text eventually ... this cannot be used to replace the command itself.

This means that you can use the "Find and Replace" tool EXCLUSIVELY to replace a command parameter as TARGETDIR to something else (eg. find what = $TARGETDIR$ - Replace with = $MY_CUSTOM_TARGETDIR$).

That said, THIS IS NOT A BUG and due of this, you are kindly requested to remove such screencast that erroneously reports this as a bug.

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

jacek.profisoft
Posts: 4
Joined: Mon Apr 04, 2016 6:14 am
Location: Poznan, Poland
Contact:

Re: Change 'install into' type for selected assemblies at on

Postby jacek.profisoft » Mon Apr 11, 2016 5:48 am

Hi Francesco!
FrancescoT wrote:(...)
This means that you can use the "Find and Replace" tool EXCLUSIVELY to replace a command parameter as TARGETDIR to something else (eg. find what = $TARGETDIR$ - Replace with = $MY_CUSTOM_TARGETDIR$).
(...)

Sorry but this 'Replace' tool is quite confusing and even its own tooltip ("Search and replace a string literal in MSIcode") doesn't explain what's its purpose.

So if I get you right there is no way to use 'Replace' tool to change assembly install location from 'Global Assembly Cache' into '$TARGETDIR$'? 'Replace' tool clearly isn't a solution in that case as I'm not trying to change $SOME_VAR$ into $ANOTHER_VAR$.

I'm looking forward to see that functionality in future releases.

I've removed my screencast as you asked.
Best regards
Jacek Trubłajewicz
Profisoft


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 181 guests