/build/static/layout/Breadcrumb_cap_w.png

PersonalFolder subdirectory incorrectly resolving

Hi,

I'm trying to package Modplug Tracker, which I want to configure to store it's data in My Docs and AppData. My users' MyDocs and Appdata are redirected to a network location. I am creating some registry entries (which reference the Mydocs location and subdirs), as well as create some files/folders in the users' my docs.

Mydocs is redirected to N:\
The PersonalFolder is resolving correctly.
A sample folder I'm using is N:\My Music\Modplug Tracker\Songs
I've done some testing and PersonalFolder (ie N:\), My Music, Modplug Tracker all resolve to the correct network locations, but when using the last folder: Songs, resolves locally c:\windows\system32\config\systemprofile\etc.

I can workaround this for the registry entries by entering [PersonalFolder]My Music\Modplug Tracker\Songs instead of [Songs]. But I can't do this for the folders I'm creating. Can anyone suggest what I'm missing here? I've tried changing the ALLUSERS property from 1 to 0, but this does not affect the issue.

PS I'm using WPS.

Thanks

0 Comments   [ + ] Show comments

Answers (7)

Posted by: venki_msi 17 years ago
Senior Yellow Belt
3
Did you tried adding set directory CA for songs directory as below

Songs>[N:\My Music\Modplug Tracker\Songs]

or

Songs = [PersonalFolder]My Music\Modplug Tracker\Songs

and also in the default directory column of directory table there are simialar songs dirctory as listed below , remove the un wanted one or differentiate both songs (i.e Songs~1|Songs,Songs~2|Songs)

Songs Modplug_Tracker Songs
Modplug_Tracker My_Music MODPLU~1|Modplug Tracker
Songs_ Modplug_Tracker Songs

Thanks,

Venki
Posted by: sikkert 17 years ago
Orange Senior Belt
0
Sounds like you got an error in the Directory table, is my first guess.
Also, make sure that "Songs" is not the name of a property, because that can really mess things up.

And what do you mean by folders you are creating? This should all be done in the Directory table, or in the CreateFolder table if it is empty. Do you do that?
A print of your Directory table might also help us to give you more support.
Posted by: meastaugh1 17 years ago
Senior Purple Belt
0
Hi, Thanks for your prompt reply.

The folder names aren't properties. The folders aren't empty. I've placed a hidden file in each so they're recreated if the user deletes them. I realise that ideally I should a HKCU entry, but that wouldn't recreate folders when they're deleted.

Yes, by creating the folders, I meant the directory table, which WPS populated as part of the repackage.

After some more investigation, the directory seems to stop resolving correctly when the file is assoicated with the directory. For example, if I create a second Songs directory entry: Songs_ and use the same defaultdir and directory_parent, then place the directory as a value in the registry, it resolves correctly. If I then assoicate the new directory with the file, it starts resolving to windows\system32\config\systemprofile again.

This is my directory table as requested:

INSTALLDIR ProgramFilesFolder OPENMP~1|OpenMPT1.17RC2_generic
TARGETDIR SOURCEDIR
WindowsFolder TARGETDIR .:Windows
System16Folder WindowsFolder .:System
ProfilesFolder WindowsFolder .:Profiles
DesktopFolder ProfilesFolder .:Desktop
AppDataFolder ProfilesFolder .:Applic~1|Application Data
RecentFolder ProfilesFolder .:Recent
NetHoodFolder ProfilesFolder .:NetHood
MyPicturesFolder TARGETDIR .:MYPICT~1|My Pictures
LocalAppDataFolder TARGETDIR .:APPLIC~1|Application Data
Songs Modplug_Tracker Songs
Modplug_Tracker My_Music MODPLU~1|Modplug Tracker
Songs_ Modplug_Tracker Songs
SendToFolder ProfilesFolder .:SendTo
WWWROOT TARGETDIR .:wwwroot
StartMenuFolder ProfilesFolder .:StartM~1|Start Menu
TemplateFolder WindowsFolder .:ShellNew
SystemFolder WindowsFolder .:System32
GAC TARGETDIR .:GLOBAL~1|Global Assembly Cache
PrintHoodFolder ProfilesFolder .:PrintH~1|PrintHood
PersonalFolder ProfilesFolder .:Personal
My_Music PersonalFolder MyMusic|My Music
Plugins Modplug_Tracker Plugins
Plugins_ Modplug_Tracker Plugins
TempFolder WindowsFolder .:Temp
Samples Modplug_Tracker Samples
Samples_ Modplug_Tracker Samples
ReleaseNotesImages INSTALLDIR RELEAS~1|ReleaseNotesImages
ProgramFilesFolder TARGETDIR .:Progra~1|Program Files
AdminToolsFolder WindowsFolder .:ADMINT~1|Admin Tools
ProgramMenuFolder StartMenuFolder .:Programs
CommonFilesFolder ProgramFilesFolder .:Common~1|Common Files
Modplug_Tracker2 ProgramMenuFolder MODPLU~3|Modplug Tracker
FavoritesFolder ProfilesFolder .:Favori~1|Favorites
Instruments Modplug_Tracker INSTRU~1|Instruments
StartupFolder ProgramMenuFolder .:Startup
Modplug_Tracker1 AppDataFolder MODPLU~2|Modplug Tracker
RC2 ReleaseNotesImages RC2
extraKeymaps INSTALLDIR EXTRAK~1|extraKeymaps
RC1 ReleaseNotesImages RC1
WinSxS WindowsFolder .:WinSxS
FontsFolder WindowsFolder .:Fonts
CommonAppDataFolder TARGETDIR .:APPLIC~1|Application Data
Instruments_ Modplug_Tracker INSTRU~1|Instruments

Thanks
Mike
Posted by: sikkert 17 years ago
Orange Senior Belt
0
Sounds strange indeed.
I can't say I see anything wrong with your Directory table, at least.
You say it fails when you put it in the Songs directory. What about the Modplug Tracker or My Music directories? Any problems there?
Have you run a validation on the package? That have helped me a few times, digging up some strange errors.
Posted by: meastaugh1 17 years ago
Senior Purple Belt
0
Hi,

I think the same issue started to occur when I moved the file up the tree. The validation didn't really give anything useful, other than that I should be using a HKCU entry as the keypath for file I was storing in MyDocs, which I already knew about.

I'm going to try and build the package manually (ie not repackage).

Thanks for the help so far.
Mike
Posted by: meastaugh1 17 years ago
Senior Purple Belt
0
Hi,

I got the same advice from the Altiris forum. Using the Set Directory custom action works great. Thanks
Posted by: MSIMaker 17 years ago
2nd Degree Black Belt
0
Nice one venki_msi.....rated 2 points for that one :)
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ