@@ -115,25 +115,24 @@ public async Task<bool> Install(IProgress<InstallationProgress> progress, Cancel
115115 "Assets" , "Resources" , "Dependencies" , "KinectRuntime-x64.msi" )
116116 } ;
117117
118+ await PathsHandler . Setup ( ) ;
119+
118120 // Copy to temp if amethyst is packaged
119121 // ReSharper disable once InvertIf
120- if ( PackageUtils . IsAmethystPackaged )
121- {
122- // Create a shared folder with the dependencies
123- var dependenciesFolder = await ApplicationData . Current . TemporaryFolder . CreateFolderAsync (
124- Guid . NewGuid ( ) . ToString ( ) . ToUpper ( ) , CreationCollisionOption . OpenIfExists ) ;
125-
126- // Copy all driver files to Amethyst's local data folder
127- new DirectoryInfo ( Path . Join ( Directory . GetParent ( Assembly . GetExecutingAssembly ( ) . Location ) ! . FullName ,
128- "Assets" , "Resources" , "Dependencies" ) )
129- . CopyToFolder ( dependenciesFolder . Path ) ;
130-
131- // Update the installation paths
132- paths =
133- [
134- Path . Join ( dependenciesFolder . Path , "KinectRuntime-x64.msi" )
135- ] ;
136- }
122+ // Create a shared folder with the dependencies
123+ var dependenciesFolder = await PathsHandler . TemporaryFolder . CreateFolderAsync (
124+ Guid . NewGuid ( ) . ToString ( ) . ToUpper ( ) , CreationCollisionOption . OpenIfExists ) ;
125+
126+ // Copy all driver files to Amethyst's local data folder
127+ new DirectoryInfo ( Path . Join ( Directory . GetParent ( Assembly . GetExecutingAssembly ( ) . Location ) ! . FullName ,
128+ "Assets" , "Resources" , "Dependencies" ) )
129+ . CopyToFolder ( dependenciesFolder . Path ) ;
130+
131+ // Update the installation paths
132+ paths =
133+ [
134+ Path . Join ( dependenciesFolder . Path , "KinectRuntime-x64.msi" )
135+ ] ;
137136
138137 // Finally install the packages
139138 return InstallFiles ( paths , progress , cancellationToken ) ;
0 commit comments