build-release.bat n...
 
Notifications
Clear all

build-release.bat not install successfully

9 Posts
3 Users
0 Reactions
1,459 Views
Posts: 14
Topic starter
(@vardhman)
Active Member
Joined: 7 years ago

Hello,

Install WixToolkit on machine. but still getting error when run build-release.bat file

 

error :

====

UNHANDLED EXCEPTIONS FROM PROCESS 4408:
=====================
12/1/2017 6:32:46 PM
System.IO.FileLoadException: Could not load file or assembly 'file:///E:CPtoolswixcandle.exe' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'file:///E:CPtoolswixcandle.exe' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at Microsoft.Tools.WindowsInstallerXml.Build.Tasks.WixToolTask.ExecuteToolThread(Object parameters)
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)

Reply
Posts: 14
Topic starter
(@vardhman)
Active Member
Joined: 7 years ago

Hello,

Moves forward.. Issue was windows defender not allowing to execute .exe from wix folder.

But, stuck at another place

 

"C:SolidCPSolidCPbuild.xml" (Build target) (1) ->
"C:SolidCPSolidCP.InstallerSourcesSolidCP.InstallerSolidCP.Installer.csproj" (default target) (133) ->
"C:SolidCPSolidCP.InstallerSourcesSolidCP.Installer.CoreSolidCP.Installer.Core.csproj" (default target) (134:2) ->
(GenerateSerializationAssemblies target) ->
SGEN : error : Could not load file or assembly 'file:///C:SolidCPSolidCP.InstallerLibIonic.Zip.Reduced.dll' or one of its dependencies. Operation is not supported. (Exception from HRE
SULT: 0x80131515) [C:SolidCPSolidCP.InstallerSourcesSolidCP.Installer.CoreSolidCP.Installer.Core.csproj]

94 Warning(s)
1 Error(s)

 

If you look at this it would be big help

Thanks in advance

Reply
Posts: 14
Topic starter
(@vardhman)
Active Member
Joined: 7 years ago

Hello,

 

run successfully the build-release.bat file for release project. but now problem is : 

 

-> after build-release.bat my changes not include in installer.

Is there remain any other settings.

 

Thank you

Reply
Posts: 1967
Admin
(@m-tiggelaar)
Noble Member
Joined: 9 years ago

Hello,

the build script will build as per your Solution in visual studio.

Though what are you trying to change in the installer?

Regards,

Marco

Reply
Page 2 / 2
Share: