English 中文(简体)
Wix-Installer-How,我可以组建。 摘自目前的名录?
原标题:Wix-Installer-How can I get setup.exe s current directory?

I m using setup.exe and setupbld.exe (from %WixProramFolder%in)to make a bootstrapper for my installer. Everything is ok except: I want to get current directory of setup.exe but:

  1. When I use property "CURRENTDIRECTORY", I will get wrong value if I run command line in cmd.exe: "C:>"D:setup.exe"". "CURRENTDIRECTORY" is "C:" but "D:" is true.

  2. When I use property "SOURCEDIR", setup.exe will extract setup.msi to "%Temp%{ProductID}setup.msi" and "SOURCEDIR" is "%Temp%{ProductID}" but expected is "D:"

Anybody can help me? It make me headache this time :-( Sorry about my English.

问题回答

上周,我有同样的问题,我需要获得银行的支持,才能恢复安装。 我不想在安装机中加入,因为安装机可能会更新,即使压缩机为168Mb。

最后,我将文件输入安装器,以便安装在申请安装目录上,并在文档中设置<编码>Compressed=“no”<>/code”,从而成为外部依赖。 这不是理想,而是我能够开展工作的唯一途径。





相关问题
Correct place to install demostration projects?

With the new Windows 7 restrictions (well, new to Windows Vista anyways), we can no longer install demo projects to %ProgramFilesFolder%OurApplicationdemo since restricted users will not be able to ...

.deb package conffiles problem

I am distributing one of my applications using a .deb package, but have a problem relating to one of the files. The distribution includes a database file which is constantly updated by the app, on a ...

Closing an application using WiX

In creating my WiX installer I have run into an issue when trying to close an application before installing the upgrade. Below is an example of how I am attempting to do this. <util:...

VS 2005 Setup - HKCU

I am trying to fix an existing application that uses a Visual Studio 2005 setup project. We are requiring it to work on limited user accounts for XP, our app is written in C# for .Net 2.0. It writes ...

Do I want Publish or Release Build in VB.net?

I wrote a little (like 40 lines little) Winforms application with VB.net in Visual Studio 2010. Now I ve released the code as a Google Code project. It s easy for a developer to get the source but I d ...

configsource and installer

I have an project csproj, with app.config file, and logging Ent.Library section using configsource attribute. The logging section is in ahother file Configloggingconfiguration.config. I have a ...

热门标签