Files panel - I can't rename a target folder that I added

Got a problem you cannot solve? Try here.
JohnO
Posts: 127
Joined: Tue Jun 18, 2013 9:52 am

Files panel - I can't rename a target folder that I added

Postby JohnO » Tue Jul 16, 2013 8:04 am

I added a couple of subfolders to $MYPROFILES$ in the Target Folders pane. I now want to rename one of these folders, but the Edit item in the pop-up menu is disabled. What do I have to do to change the name? I'm using 'Filter files by feature' if that is relevant.

I don't want to delete the folder, because there are about 20 subfolders, and as there is no multi-selection for Add Folders, I have to add them one at a time, and reset the parent folder each time... which is time consuming and something I want to avoid doing again.

Regards, John

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

Re: Files panel - I can't rename a target folder that I adde

Postby FrancescoT » Tue Jul 16, 2013 8:56 am

Dear John,

switch to MSI Code view and search for the Create Folder command that points to the folder that you want to rename.
Once located, double click the command and edit the name as you like.

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

JohnO
Posts: 127
Joined: Tue Jun 18, 2013 9:52 am

Re: Files panel - I can't rename a target folder that I adde

Postby JohnO » Tue Jul 16, 2013 11:13 am

Francesco
I changed the name of the folder in the MSI code, but it is not reflected in the Files view - the original names are still showing. This is still the case after re-opening the current project and after closing IA and restarting.
The original folder name was $TITLE$$VERSION$, now in the MSI code it is SoftwareSuite$VERSION$

Regards, John

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

Re: Files panel - I can't rename a target folder that I adde

Postby FrancescoT » Tue Jul 16, 2013 11:46 am

Dear John,

Are you sure you have edited all the "Create Folder" commands (...that point to that folder) eventually present?

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

JohnO
Posts: 127
Joined: Tue Jun 18, 2013 9:52 am

Re: Files panel - I can't rename a target folder that I adde

Postby JohnO » Wed Jul 17, 2013 2:09 am

Francesco
There are three Create Folder stmts in the MSIcode editor:
(Pasted from clipboard and cleaned up a bit)
~Create Folder~~$MYPROFILES$\Romonet~
~Create Folder~~$MYPROFILES$\Romonet\SoftwareSuite$VERSION$~
~Create Folder~~$MYPROFILES$\Romonet\SoftwareSuite$VERSION$\resources~

The left-hand dropdown says "Web Media Blocks". When I change it, there is no change to the code displayed.
There are no create folder stmts in the other tabs (checkmsi20, setupmsi20, update).

What surprised me was that the new installer I generated installed using the value in $TITLE$ ('Software Suite' with a space).

I can recheck this and that was last night, and my grey cells don't remember well that far back :?

Added: I have regenerated and the value in $TITLE$ is the one used in the installer, not the value in the MSIcode. Which seems strange to me. And the folder name shown in the Files view is still showing $TITLE$.

Added more: What is happening is:
- the 'resources' folder is being created correctly under its parent folder "SoftwareSuite$VERSION$", but it is empty.
- the files assigned to go in that directory are being installed in a 'resources' folder with parent "$TITLE$$VERSION", which is what you see in the Files view.

Added even more:
While searching the msicode for another problem, I found stmts like the following in a section titled [Define Web Media resources]:
Install Files E:\RSS Builds\RSS 2.1.2\PROGNOSE\resources\Special Data Centres\*.* to $MYPROFILES$\Romonet\$TITLE$$VERSION$\resources\Special Data Centres, include subfolders

This explains why the files are copied to the $TITLE$$VERSION$ folder, and maybe why that is what I see in the Files view. I would change the msicode, but not one line at a time as there are lots. Is there a way to get into a text edit mode so I can do find/replace?

John

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

Re: Files panel - I can't rename a target folder that I adde

Postby FrancescoT » Wed Jul 17, 2013 9:20 am

Dear John,

why don't you use the Replace command available with the MSI code view?

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

JohnO
Posts: 127
Joined: Tue Jun 18, 2013 9:52 am

Re: Files panel - I can't rename a target folder that I adde

Postby JohnO » Wed Jul 17, 2013 11:34 am

Hi Franceso
Because I am trying to run before I can walk, so I have no knowledge of what is available.

I wanted to replace "$TITLE$$VERSION$\resources" with "SoftwareSuite$VERSION$\resources". But I couldn't work out how to use the 'smart thing' I got from either dragging Replace String or typing 'replace...'. It wanted me to choose a Variable from its list - none of which looked relevant. My impression is that this would add a 'replace' statement to the code, rather than actually renaming. Is there a clear text file I can edit in a text editor (I appreciate the dangers, so would copy it first).

I think my best approach would be to delete the folder and add it with the required name. Otherwise, I am asking for help before I am really ready, which is not fair on you. Thanks for the links, I will follow them and see if I can find what I want, and in F1.

Regards, John

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

Re: Files panel - I can't rename a target folder that I adde

Postby FrancescoT » Thu Jul 18, 2013 8:49 am

... alternatively, you could edit the script file that contains those statements (<filename>.mia) ... make a beckup copy of it before to proceed and pay attention to not alterate the file format used.

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 73 guests