Wix - Installing an app off the c:\ root instead of program files and creating shortcuts -


this markup used create directory structure , create sub directories. work fine. creates software directory of c:\ root , creates sub directories under that. add new component group called "shortcuts". want create short cut on start menu , desktop icon.i not sure of call id ?????? in start menu directory. following error when build project.

error 1 component/@directory attribute not found; required.
occurs twice. 1 @ line component id="cmpstartmenushortcut" , 1 @ line component id="cmpdesktopshortcut"

 <fragment>     <directory id="targetdir" name="sourcedir">       <directory id="windowsvolume">         <directory id="softwaredirectory" name="unionadministrator">           <directory id="runtimefolder" name="runtime" />           <directory id="reportsfolder" name="reports" />           <directory id="tasksfolder" name="tasks" />           <directory id="debuglogsfolder" name="debuglogs" />         </directory>       </directory>       <directory id ="fontsfolder" />       <directory id ="???????????r">         <directory id="appstartmenufolder" name="runtime" />       </directory>       <directory id="desktopfolder" />     </directory>      <setdirectory id="windowsvolume" value="[windowsvolume]" />   </fragment>    <fragment>     <componentgroup id="productcomponents">       <component id="cmpcreateruntimefolder"                  guid="{27d409d8-8d86-4cb0-8165-e30a6e3998ec}"                  directory="runtimefolder">         <createfolder />       </component>       <component id="cmpcreatereportsfolder"                  guid="{9621003b-0bdc-44d8-b981-c5b9ca76c733}"                  directory="reportsfolder">         <createfolder />       </component>       <component id="cmpcreatetasksfolder"                  guid="{785a0024-16b2-499d-9b67-6bcbb8094c55}"                  directory="tasksfolder">         <createfolder />       </component>       <component id="cmpcreatedebuglogsfolder"                  guid="{9c91955b-967a-411d-acd9-6c6aa15f84e8}"                  directory="debuglogsfolder">         <createfolder />       </component>     </componentgroup>   </fragment>   <fragment>     <componentgroup id="shortcuts">       <component id="cmpstartmenushortcut"                          guid="{2a561f4e-118a-4927-9c29-7ff441b77097}">         <shortcut id="startmenushortcut"                         name="union adminstrator"                         description="runs unionadminstrator"                         directory="appstartmenufolder"                         target="[runtimefolder]unionadministrator.exe" />       </component>       <component id="cmpdesktopshortcut"                      guid="{6a686136-06d9-469b-93ba-076d5f32d46b}">         <shortcut id="desktopshortcut"                         name="union adminstrator"                         description="runs unionadminstrator"                          directory="desktopfolder"                         target="[#file_uaexe] " />       </component>     </componentgroup>   </fragment> 

give directory shortcuts.and assign have done other components. since cant give shortcut keypath, keep registry in shortcut component keypath.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -