Search the web
Sign In
New User? Sign Up
makemsi · Build or Update MSI Databases
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
changing default install dir at run-time   Message List  
Reply | Forward Message #2517 of 2613 |
Re: [makemsi] Re: ICE03 ERROR Not a valid foreign key; Table: Directory, Column: Directory_Parent, Key(s): INSTALLDIR

Hi,

Rob Pilotte wrote:
>
>
> --- In makemsi@yahoogroups.com, Dennis Bareis <dbareis@...> wrote:

> So I guess this is typical in building MSI's? We first write the
scripts and get it to build (even with errors), then modify the MSI file
to correct any errors. MAKEMSI will save us a lot of time in getting the
MSI file "almost" right, then tweek it at the end...

No. The links to the doco from my last email show a better way, however,
lets say that you did need to make a change like you have because we
couldn't figure out a better way, in that case you can simply manually
make and test the change like you have then change your script to simply
create it that way in the first place. The easiest way of doing this is:


http://makemsi-manual.dennisbareis.com/using_orca_and_msidiff_to_automate_msi_up\
dates.htm


You will ignore most of the generated stuff except the appropriate
table/row command and copy that to your script:

http://makemsi-manual.dennisbareis.com/row.htm


> I am ok with this process if this is the norm.

The intention should be to create something fully automatically.

Bye,
Dennis

--
Dennis Bareis [Microsoft MVP] (dbareis@...)
http://dennisbareis.com/
Freeware Windows Installer creation tool (+ "ORCA automation"):
http://makemsi.dennisbareis.com/



Sat Jun 20, 2009 6:48 am

dbareis
Offline Offline
Send Email Send Email

Forward
Message #2517 of 2613 |
Expand Messages Author Sort by Date

I am having problems changing the default install directory at run time. If I modify the TryMe.MM file (after the #include "ME.MMH") to include the following: ...
Rob Pilotte
pilotter
Offline Send Email
Jun 19, 2009
2:46 pm

... I also tried removing the quotes from ^[SOMEDIR]^ and got the following error: Location : line 36 of "C:\Program Files\MakeMsi\Samples\TryMe\Create MSI...
Rob Pilotte
pilotter
Offline Send Email
Jun 19, 2009
3:00 pm

... time. ... PrimaryFolder="Y"> ... Files\MakeMsi\Samples\TryMe\Create MSI Installers\TryMe.MM" ... CHANGE="\" PrimaryFolder="Y"> ... Parent=^^[SOMEDIR]^^> ...
Dennis Bareis
dbareis
Offline Send Email
Jun 20, 2009
12:27 am

That syntax change will still generate an error at the validation step: Location : line 11 of "C:\Program Files\MakeMsi\Samples\TryMe\Create MSI...
Rob Pilotte
pilotter
Offline Send Email
Jun 20, 2009
4:08 am

Hi, ... Directory_Parent, Key(s): INSTALLDIR ... PrimaryFolder="Y"> ... The error message is telling you to look at the "Directory" table, so using orca: ...
Dennis Bareis
dbareis
Offline Send Email
Jun 20, 2009
4:56 am

Hi, ... collect these into a new "tip" in the ... Hopefully this new page helps: ...
Dennis Bareis
dbareis
Offline Send Email
Jun 20, 2009
5:40 am

... ok. I used orca to modify the MSI. I added a new row in the Directory table with SOMEDIR in the Directory field and SourceDir in the DefaultDir field -- I...
Rob Pilotte
pilotter
Offline Send Email
Jun 20, 2009
6:39 am

Hi, ... scripts and get it to build (even with errors), then modify the MSI file to correct any errors. MAKEMSI will save us a lot of time in getting the MSI...
Dennis Bareis
dbareis
Offline Send Email
Jun 20, 2009
6:48 am

... I see now. I added the code from your previous link before the FindFile command: <$Property "SOMEDIR" Persist="Y" PersistHow="PRODUCT FOREVER"> ...
Rob Pilotte
pilotter
Offline Send Email
Jun 20, 2009
6:54 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help