After typos and other wierd happenings, I got the sample to run.
I have one question: The application's shortcuts are placed in \Program
Files\Redpark\menu but do not appear in the Start menu. How do I get them to
appear there?
delete the following row from the "Directory"-table
"MENUDIR", "NOTEPADDIR", "Menu"
add these rows to the "Directory"-table
"ProgramMenuDir", "TARGETDIR", ""
"MENUDIR", "ProgramMenuDir", "MyApplication"
the second row tells installer to create a "MyApplication" subfolder in the
"Programs"-Folder of the "Start"-menu. the first row is needed to be able to
use the "ProgramMenuDir" in the "Directory_Parent"-column of the second
row...
the "ProgramMenuDir" is a Windows Installer predefined Folder (see "System
Folder Properties" in SDK)
i haven't tried this, but i think it should work :-)
franz
"S. Hussain Akbar" <hus...@systemsltd.com> schrieb im Newsbeitrag
news:eBRcrdBwBHA.2540@tkmsftngp04...
I get an error during validation that the target is invalid in
ProgramMenuDir. So I placed a period there to make the error go away.
Installed the MNP package again. It previously created a folder in
C:\Program Files\Redpark called "Menu" and placed the shortcuts there. Now,
no such folder. Also, no shortcuts in the
Start Menu. hmmm
My Directory folder now looks like this:
TARGETDIR, <blank>, SourceDir
ProgramFilesFolder, TARGETDIR, .
ARTSDIR, NOTEPADDIR, Arts:Events
NOTEPADDIR, ProgramFilesFolder, Red_Park:Notepad
HOLDIR, MONDIR, .:Holidays
MONDIR, NOTEPADDIR, Gate
MENUDIR, ProgramMenuDir, RedPark
SPORTDIR, NOTEPADDIR, Sports:Events
ProgramMenuDir, TARGETDIR, .
Regards
Hussain
"Franz Strele" <franz....@synergis.at> wrote in message
news:eGDYscEwBHA.2096@tkmsftngp07...
I would try substituting "ProgramMenuFolder" for "ProgramMenuDir" and see
what happens.
Dave Hanna
>My Directory folder now looks like this:
>
>TARGETDIR, <blank>, SourceDir
>ProgramFilesFolder, TARGETDIR, .
>ARTSDIR, NOTEPADDIR, Arts:Events
>NOTEPADDIR, ProgramFilesFolder, Red_Park:Notepad
>HOLDIR, MONDIR, .:Holidays
>MONDIR, NOTEPADDIR, Gate
>MENUDIR, ProgramMenuDir, RedPark
>SPORTDIR, NOTEPADDIR, Sports:Events
>ProgramMenuDir, TARGETDIR, .
"S. Hussain Akbar" <hus...@systemsltd.com> spake the secret code
<uP#1#QRwBHA.2636@tkmsftngp07> thusly:
>My Directory folder now looks like this:
>
>TARGETDIR, <blank>, SourceDir
>ProgramFilesFolder, TARGETDIR, .
>ARTSDIR, NOTEPADDIR, Arts:Events
>NOTEPADDIR, ProgramFilesFolder, Red_Park:Notepad
>HOLDIR, MONDIR, .:Holidays
>MONDIR, NOTEPADDIR, Gate
>MENUDIR, ProgramMenuDir, RedPark
>SPORTDIR, NOTEPADDIR, Sports:Events
>ProgramMenuDir, TARGETDIR, .
ProgramMenuDir should be ProgramMenuFolder.
When you add entries in the Directory table for predefined folder
property names, you have to be careful to use the predefined property
name exactly as it appears in the documentation, including case.
--
Ask me about my upcoming book on Direct3D from Addison-Wesley!
Direct3D Book http://www.xmission.com/~legalize/book/
Don't Support Spammers! Boycott Fractal Painter 7!
http://www.xmission.com/~legalize/spammers.html
Place the above entries in the directory table as is
starting from TARGETDIR. Ensure the case is preserved for
all the entries.
The '.:StartMen|Start Menu' is the DefaultDir for the
directory 'StartMenuFolder'.
>-----Original Message-----
>I am just starting on MSI. I followed the example in the
SDK Help on "Making a simple application" for the
Notepad / Redpark application.
>I have one question: The application's shortcuts are
"Sridhar Krish" <zent...@yahoo.com> spake the secret code
<8cbb01c1c169$f4318f20$9be62ecf@tkmsftngxa03> thusly:
>The '.:StartMen|Start Menu' is the DefaultDir for the
>directory 'StartMenuFolder'.
Does that hold true for localized versions of Windows?
I found it better to just use '.' as the DefaultDir and let Windows
set the actual directory name in the property.
It worked. Thanks a lot.
I'll go study the directory table a bit. Looks a lot as if these entries are
pointing to each other in a multiple lookup sequence.
Regards
Hussain
If I understand this correctly, what you write will place the shortcut to
Redpark in (the current user's?) Start Menu. What about the shortcuts to the
other items (Sports, Holidays, ...)? And can I place them in a submenu off
the Redpark menu?
Hussain
"Sridhar Krish" <zent...@yahoo.com> wrote in message
news:8cbb01c1c169$f4318f20$9be62ecf@tkmsftngxa03...
In the Shortcuts table, if you have used 'MENUDIR' in the
DIRECTORY column for all the shortcuts, then in the
Directory Table modify the entry for MENUDIR as below
Directory Directory_Parent DefaultDir
--------- ---------------- ----------
MENUDIR Red_Park Menu
Doing this would place all the shortcuts under
Program\RedPark\Menu
Instead if you want all the shortcuts to be directory
placed under 'RedPark' itself, you need to the value of
DIRECTORY column for all the entries in the Shortcuts
table to 'Red_Park'.
Hope this is clear.
________
Rich,
Yes, you are right. Using just the '.' would be more
appropriate. The entries that I had suggested in my first
posting is more appropriate with NT/Win2K as the source
location of the MSI. I shouldn't have done that. Thanks
for the clarification.
Sridhar.
>.
>