Feb 25 2019 02:58 AM
Feb 25 2019 02:58 AM
Thanks & Regards
Mar 02 2019 02:57 PM
I see John missed this one.
With the exception of Win7 backrev deployment, .Net 4.6.1 is guaranteed to be there. MSIX does have a way to indicate package dependencies, but within the MSIX tool this means manually editing the AppXManifest.
Most of the time, I expect that an MSIX based app that needs Crystal Reports runtime available will need it available within the app MSIX container. So an external "native" install or even a unrelated MSIX package listed as a package dependency won't meet your needs so going this dependency route will probably not go well for you.
You probably can package up Crystal Reports Runtime in an MSIX package, and then your app that depends on it as an Add-On package (Modification package in MSIX Packaging Tool parlance), except that (currently) modification packages don't get shortcuts and you need one (or more) of those.
So if you have to put the shortcut into CRR, given these limitations today I'd just make a single package with both parts. It's not as bad of idea as it sounds, as you probably aren't going to change CRR on it's own and you have single instance download and storage at the block level. So no matter how many packages you build with the CRR in it, you still only download and store it once on the client.
Oct 09 2019 05:32 AM
I have a similar problem. I would like to ship an app as an .msix. This app needs to have Sql Server Localdb installed. Our current installer (made by installshield) checks if Localdb is installed, and if not installs it (after having asked the user for permission).
Is it possible to achieve something like that with msix?
Oct 09 2019 06:48 AM
Oct 09 2019 08:16 AM - edited Oct 09 2019 08:36 AM
Thanks for your reply Tim. I've tried to add the psf files plus a config.json to my to my "Windows Application Packaging Project", but I'm not really sure how to continue from here. Is there any example of this that you can direct me to?
Also a beginner when it comes to Powershell scripting. Do you know of any good resource for checking and installing an app from powershell.
Dec 01 2019 09:14 AM
@FredrikDahlberg I built some tooling to help with the Psf, but it only works for repackaging scenarios, not in package build projects.
There are lots of good online resources for PowerShell, and by now you've probably found a few. But if not, all you'd really need is enough PowerShell knowledge to have a ps1 file that runs a cmd.exe process with arguments "/c filename.cmd" and you can then have a cmd script instead. (Similarly if you prefer cscript you can start a cscript.exe command line).
Someday maybe I'll extend the Psf scripting to support directly specifying a cmd, cscript, or wscript file in addition to the ps1 filetype, but it isn't very high on my priority list.
Dec 02 2019 06:33 PM
Would another option be to install the server during convert time of the MSI?
I've ran into this issue when apps use Java. When running the MSIX packaging tool I first install Java then I run the msi. That way Java is installed in the package.
Dec 02 2019 06:41 PM
@Darren_Hoehna I am guessing that the Sql Server LocalDB is a service which is why I was thinking about scripts. But now support for services was announced at Ignite, and can be tested now using Insider builds of the packaging tool and insider build of the 2020H1 OS. You wouldn't need the packaging tool, except maybe to do a test capture to learn the manifest syntax that would have to be manually added to the manifest file.
This option wasn't available when this thread started, but could be tried now.
Dec 02 2019 06:58 PM
If you to use PSF scripts to install SQL server from the App Packaging project you need to:
If everything is right the script will start when the app starts and install SQL.
You can also add an ending script that will shut down SQL when the app exits.
Hope this helps.