我生成了一个heat.exe输出,在我的主安装程序包中包含了这么基本的可执行文件。热量输出" heat.exe位于一个单独的文件夹中。问题是我不知道如何在我的主要" FP7000TestApp.wxs"中引用它们。文件。我在命令行上工作而不是VS.代码如下:
这就是我试图做的事情
import { Routes, RouterModule } from '@angular/router';
import { EventsComponent } from './events/events.component';
import { EventDetailsComponent } from './eventdetails/eventdetails.component';
const appRoutes: Routes = [
{ path: 'events', component: EventsComponent },
{ path: 'events/:type', component: EventsComponent },
{ path: 'events/:id/detail', component: EventDetailsComponent },
{ path: '', redirectTo: 'events', pathMatch: 'full' },
// { path: '**', component: PageNotFoundComponent }//TODO: this should redirect to PageNotFound
];
export const appRoutingProviders: any[] = [];
export const routing = RouterModule.forRoot(appRoutes);
然后我尝试将这些文件添加到INSTALLDIR:
<Fragment>
<ComponentGroup Id="EXEs">
<ComponentRef Id="cmpBBBEC31C5B1E1F507A5D59DBD596512D" />
<ComponentRef Id="cmp858C0D92FD93990FC130F9E9AD2EDF23" />
<ComponentRef Id="cmp3A6B57CB085F639B66098D25C095A639" />
</ComponentGroup>
</Fragment>
<Fragment>
<DirectoryRef Id="INSTALLDIR">
<Directory Id="dirCF50D58BC65CC93005501980AACC3EDD" Name="Included Apps">
<Component Id="cmpBBBEC31C5B1E1F507A5D59DBD596512D" Guid="{E088F199-5139-4109-B2DD-83ACF994E499}">
<File Id="fil4FBD990F67A018822444D44D411F9144" KeyPath="yes" Source="SourceDir\FP7000-Camera App.exe" />
</Component>
<Component Id="cmp858C0D92FD93990FC130F9E9AD2EDF23" Guid="{811D9046-0C67-4352-87C2-CFE5C242C9C6}">
<File Id="fil795D8B9538A78888D097D1AFAF3881D3" KeyPath="yes" Source="SourceDir\install_cmds.exe" />
</Component>
<Component Id="cmp3A6B57CB085F639B66098D25C095A639" Guid="{177B954A-CA1A-4AF4-BACB-BCB5B1E7B4BF}">
<File Id="fil1FD260547094E801231BFA5E75AE4E57" KeyPath="yes" Source="SourceDir\Intel_Media_SDK_2016_R2.msi" />
</Component>
</Directory>
</DirectoryRef>
</Fragment>`
答案 0 :(得分:2)
我已经检查了自动生成的Visual Studio输出,看起来您需要将-ext "X:\path\to\file\heatfile.wxs"
添加到candle.exe
来电
和
-spdb "obj\Debug\heatfile.wixobj"
致Light.exe
来电。
然后只在主产品文件功能列表中引用组件组
<Feature Id=...>
<ComponentGroupRef Id="EXEs" />
</Feature>