nwein
Posts: 577
Joined: 2011-03-28
|
I'm using wix 3.7 with Visual Studio 2010 and am able to create all sorts of Wix msi.
Today I've tried to create a setup project of my add-in as a Wix (I've already done so as Visual Studio Installer).
I right clicked my ADX project > Create Setup Project > checked the WiX radio button > Next > changed output directory to a new folder under my desktop (/Desktop/Wix/Installer) > Finish --> Error
The exception message is: Could not find a part of the path 'C:\<username>\Desktop\Wix\Installer\Product.wxs'.
It also deletes the latter (empty) Installer folder.
If I don't change the directory everything works fine.
ADX 7.2.4055.2005 |
|
Sergey Grischenko
Add-in Express team
Posts: 7233
Joined: 2004-07-05
|
Hi Nir,
What if you change the directory to something like 'c:\MyProjects\Wix\Installer'. Do you get the same issue? |
|
nwein
Posts: 577
Joined: 2011-03-28
|
Yes.
I've created that path (C:\MyProjects\Wix\Installer) and set it as the folder in the setup.
This is the full error message:
Detailed technical information follows:
---
Date and Time: 27/05/2013 11:56:27 AM
Machine Name: *****
IP Address: fe80::10df:6a07:de3c:7b1f%15
Current User: *****\*****
Application Domain: DefaultDomain
Assembly Codebase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
Assembly Full Name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Assembly Version: 4.0.0.0
Exception Source: mscorlib
Exception Type: System.IO.DirectoryNotFoundException
Exception Message: Could not find a part of the path 'C:\MyProjects\Wix\Installer\Product.wxs'.
Exception Target Site: WinIOError
---- Stack Trace ----
System.IO.__Error.WinIOError(errorCode As Int32, maybeFullPath As String)
mscorlib.dll: N 0261 (0x105) IL
System.IO.FileStream.Init(path As String, mode As FileMode, access As FileAccess, rights As Int32, useRights As Boolean, share As FileShare, bufferSize As Int32, options As FileOptions, secAttrs As SECURITY_ATTRIBUTES, msgPath As String, bFromProxy As Boolean, useLongPath As Boolean)
mscorlib.dll: N 0928 (0x3A0) IL
System.IO.FileStream..ctor(path As String, mode As FileMode, access As FileAccess)
mscorlib.dll: N 0000 (0x0) IL
AddinExpress.Projects.Common.Utilities.SaveDataItem(fileName As String, data As Byte[])
mscorlib.dll: N 0002 (0x2) IL
AddinExpress.SetupWizard.SetupWizardForm.CreateSetupProject(primaryOutputPath As String)
mscorlib.dll: N 1767 (0x6E7) IL
AddinExpress.SetupWizard.SetupWizardForm.CreateSetupProject(project As Project, targetFramework As UInt32)
mscorlib.dll: N 0052 (0x34) IL
AddinExpress.Wizard.ADXPackage.Exec(guidCmdGroup As Guid&, cmdID As UInt32, nCmdexecopt As UInt32, pvaIn As IntPtr, pvaOut As IntPtr)
mscorlib.dll: N 0881 (0x371) IL |
|
nwein
Posts: 577
Joined: 2011-03-28
|
Ok, I've narrowed it down to the source of the problem: If I don't have that folder structure (e.g. c:\MyProjects\Wix\Installer) it does work but if I try to use an existing path the wizard throws an error. |
|
Sergey Grischenko
Add-in Express team
Posts: 7233
Joined: 2004-07-05
|
Hi Nir,
Thank you for the help. For some reason I can't reproduce it. But I will review the code of the product. |
|