Error initializing msi database

Got a problem you cannot solve? Try here.
khalprin
Posts: 51
Joined: Fri Aug 25, 2006 2:02 pm

Error initializing msi database

Post by khalprin »

I get this error when trying to build my project. I just upgraded from Installaware 9R2 to Installaware 2012. I have another project that builds without error using Intallaware 2012. The issue is not a permissions problem (I have full permission to all project-related folders) and 9R2 could build the project in same location (and while logged in as the same user). Any ideas what might cause this?

Building Project: <name>
Output Folder: <snip>\Release\SingleDeployment Type: Compressed Single Self Installing EXE
Code Signing: Enabled
Compression: Best
Compiler Variables: UAC=requireAdministrator,INSTALLAWARE_DRM_LAUNCHES=FALSE,INSTALLAWARE_DRM_DAYSRELATIVE=TRUE,INSTALLAWARE_DRM_DAYSABSOLUTE=FALSE,INSTALLAWARE_DRM_DAYS=FALSE,INSTALLAWARE_DRM_YEAR=2012,INSTALLAWARE_DRM_MONTH=7,INSTALLAWARE_DRM_DAY=13,INSTALLAWARE_DRM_EXPIREUSAGE=FALSE,INSTALLAWARE_DRM_EXPIREFIXED=FALSE,BUILDMODE=SFX,"LANGUAGE=English","TITLE=<name>",TARGETDIR=$TARGETDIR$,IADIR=C:\PROGRA~2\INSTAL~2\INSTAL~1,PROJDIR=<snip>,IAVER=13.00
###
Cleared output folder <snip>\Release\SingleError during build: Unable to initialize MSI database, recommend IDE restart (or verify build folder permissions)
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Error initializing msi database

Post by FrancescoT »

Dear User,

are you building from IDE or using command line?

Let me know.

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
khalprin
Posts: 51
Joined: Fri Aug 25, 2006 2:02 pm

Re: Error initializing msi database

Post by khalprin »

I'm building from the IDE. Here's more information...I've now gotten this to build a couple of times with no apparent change to anything in the project (and definitely no change in permission settings). I don't know what makes it work or what makes it fail.
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Error initializing msi database

Post by FrancescoT »

Dear User,

Let me know if you still have problem or if you have more info to share.

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
khalprin
Posts: 51
Joined: Fri Aug 25, 2006 2:02 pm

Re: Error initializing msi database

Post by khalprin »

It's back!

I open the IDE, click to Build Single File and I get the same error as before. No permission changes, no changes to the project. What can I do to resolve this?
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Error initializing msi database

Post by FrancescoT »

Dear User,

Which OS are you using?
Can you post the build log file?

Let me know.

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
khalprin
Posts: 51
Joined: Fri Aug 25, 2006 2:02 pm

Re: Error initializing msi database

Post by khalprin »

I'm using 2008 Server service pack 2.
Is the build log what shows up in the window while building..or is there a file?

Here's what is in the window:

Building Project: <snip>
Output Folder: <snip>\Release\SingleDeployment Type: Compressed Single Self Installing EXE
Code Signing: Enabled
Compression: Best
Compiler Variables: UAC=requireAdministrator,INSTALLAWARE_DRM_LAUNCHES=FALSE,INSTALLAWARE_DRM_DAYSRELATIVE=TRUE,INSTALLAWARE_DRM_DAYSABSOLUTE=FALSE,INSTALLAWARE_DRM_DAYS=FALSE,INSTALLAWARE_DRM_YEAR=2012,INSTALLAWARE_DRM_MONTH=7,INSTALLAWARE_DRM_DAY=13,INSTALLAWARE_DRM_EXPIREUSAGE=FALSE,INSTALLAWARE_DRM_EXPIREFIXED=FALSE,BUILDMODE=SFX,"LANGUAGE=English","TITLE=<snip>",TARGETDIR=$TARGETDIR$,IADIR=C:\PROGRA~2\INSTAL~2\INSTAL~1,PROJDIR=<snip>\DOCUME~1\INSTAL~1\COMMUN~1,IAVER=13.00
###
Cleared output folder <snip>\Release\SingleError during build: Unable to initialize MSI database, recommend IDE restart (or verify build folder permissions)
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Error initializing msi database

Post by FrancescoT »

Can you contact me at: [email protected]?

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
Adam
Posts: 26
Joined: Tue Jul 10, 2012 5:28 am

Re: Error initializing msi database

Post by Adam »

Hi Khalprin

I have the same issue. All you need to do after opening IDE is click Open, then reopen your project. It will build after that.

It seems to be a problem when IDE starts with a project already loaded.

Note: It doesn't happen every time, but when it does I just save and reopen it.

Cheers
Adam
khalprin
Posts: 51
Joined: Fri Aug 25, 2006 2:02 pm

Re: Error initializing msi database

Post by khalprin »

Wow - that trick appears to work for me too. I repeated this procedure three times in a row:

Open InstallAware - my project opens automatically.
Build - error
Open my project again (select cancel when asked to save [why is it asking to save anyway?])
Build - success

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

Re: Error initializing msi database

Post by FrancescoT »

Thanks Adam ... this is interesting.

Are you using the same OS (Win 2008 Server)?

I would like to replicate if possible.

Let me know.

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
Adam
Posts: 26
Joined: Tue Jul 10, 2012 5:28 am

Re: Error initializing msi database

Post by Adam »

Hi Francisco

Yep - I'm running it on 2008 Standard as well.

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

Re: Error initializing msi database

Post by FrancescoT »

I will try to replicate it!
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
rpmtec
Posts: 1
Joined: Tue Sep 25, 2012 9:20 am

Re: Error initializing msi database

Post by rpmtec »

Has there been any progress on this? We have recently upgraded from v9 to v12 and encountering the same issues running MIABUILD.exe.

Building the project via the IDE works when using the "Open" menu but this is not a viable solution to the problem as it requires human intervention. I have attempted this with both our existing MPR files and newly built projects with the exact same result.

I was wondering if this is possibly caused by some environment settings.

Code: Select all

D:\Build>miabuild /b=1 "D:\Path\to\The.mpr"

Code: Select all

Error during build: Unable to initialize MSI database, recommend IDE restart (or verify build folder permissions)
We are running on Windows Vista Business

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

Re: Error initializing msi database

Post by FrancescoT »

Dear User,

I have executed a test to try to replicate your issue, but using my test environment works fine.

Just a question, are you using IA 12 or 2012?

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
Post Reply