MSIX, PSF Framework Questions coming from an App-V environment

%3CLINGO-SUB%20id%3D%22lingo-sub-2150241%22%20slang%3D%22en-US%22%3EMSIX%2C%20PSF%20Framework%20Questions%20coming%20from%20an%20App-V%20environment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2150241%22%20slang%3D%22en-US%22%3E%3CP%3EGreetings!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20coming%20from%20an%20App-V%20environment.%26nbsp%3B%20Been%20using%20it%20for%20a%20long%20time%20and%20I've%20had%20great%20success%20with%20it.%26nbsp%3B%20I%20figured%20it's%20probably%20time%20I%20bit%20and%20started%20learning%20how%20to%20prepare%20my%20apps%20with%20MSIX%20before%20I%20its%20too%20late.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20an%20app%20re-pacakger.%26nbsp%3B%20I%20take%20other%20peoples%20software%20and%20deploy%20it%20for%20my%20users%2C%20so%20I%20don't%20have%20the%20luxury%20to%20ask%20for%20code%20changes%20(you%20guys%20know%2C%20most%20companies%20would%20just%20laugh%20anyway).%26nbsp%3B%20I've%20read%20some%20astonishing%20numbers%20about%20the%20success%20of%20packaging%2C%20but%20quite%20frankly%2C%20outside%20of%20simple%20modern%20applications%2C%20I'm%20not%20having%20the%20luck%20I%20did%20with%20App-V.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20wondering%20someone%20had%20some%20insight%20to%20share%20with%20me%20on%20how%20one%20would%20attack%20this%20application%20I'm%20working%20with.%26nbsp%3B%20%26nbsp%3BThe%20problem's%20I'm%20seeing%20are%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E*%20Program%20installs%20to%20the%20C%3A%5CStencilCad%20Basic8.%26nbsp%3B%20It%20will%20let%20you%20change%20it%2C%20but%20I've%20found%20it's%20best%20not%20to.%3C%2FP%3E%3CP%3E*%20The%20program%20looks%20in%20%3CINSTALLDIR%3E%20for%20an%20ini%20file%20to%20get%20the%20location%20of%20a%20database.%26nbsp%3B%20By%20default%2C%20this%20database%20is%20in%20the%20%3CINSTALLDIR%3E%20(the%20path%20above).%26nbsp%3B%26nbsp%3B%3C%2FINSTALLDIR%3E%3C%2FINSTALLDIR%3E%3C%2FP%3E%3CP%3E*%20Upon%20termination%20of%20the%20program%2C%20the%20application%20tries%20to%20write%20to%20a%20database%20in%20%3CINSTALLDIR%3E.%26nbsp%3B%20I've%20looked%20at%20the%20inside%20of%20almost%20every%20file%2C%20and%20I%20can't%20find%20a%20location%20(like%20an%20ini%20file)%20I%20can%20change%20to%20move%20the%20file.%3C%2FINSTALLDIR%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20started%20by%20just%20repackaging%20with%20MSIx%20Packaging%20Tool%20from%20microsoft.%26nbsp%3B%20Things%20seemed%20to%20go%20well%20until%20the%20obvious%20write%20issues%20were%20encountered.%26nbsp%3B%20Digging%20in%2C%20it%20looked%20the%20the%20PSF%20framework%20was%20the%20next%20step.%26nbsp%3B%20This%20seemed%20easy%20enough%20--%20made%20my%20edits%20per%20the%20documentation%20on%20Microsoft.com%20and%20went%20on%20my%20way.%26nbsp%3B%20No%20change.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20then%20stumbled%20across%20PSFTooling.%26nbsp%3B%20Rebuilt%20the%20vm%2C%20re-sequenced%20the%20app%2C%20and%20before%20%22moving%20on%22%2C%20I%20fired%20up%20PSFTooling%20in%20advanced%20mode%20and%20ran%20the%20shortcut%20wizard.%26nbsp%3B%20I%20did%20have%20to%20selected%20the%20PVAD%20mode%20because%2C%20for%20some%20reason%2C%20it%20was%20detecting%20the%20installer%20as%20from%20the%20installshield%20components.%26nbsp%3B%20I%20also%20tried%20this%20method%20by%20specifying%20the%20install%20folder%20in%20the%20seuqncer%20per%20Tim's%20docs%20--%20no%20go.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPoking%20around%2C%20I%20found%20Advanced%20Installer.%26nbsp%3B%20This%20looked%20great%20--%20I%20could%20fire%20up%20exe%20and%20test%20it%20and%20apply%20fixes%20right%20in%20the%20packager.%26nbsp%3B%20This%20was%20even%20worse%20--%20the%20application%20would%20never%20even%20start.%26nbsp%3B%20After%20fiddling%20a%20bit%2C%20I%20moved%20on.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20just%20not%20really%20sure%20where%20to%20go%20here.%26nbsp%3B%20I'm%20using%20this%20app%20as%20a%20learning%20example%2C%20as%20it%20seems%20to%20a%20pretty%20good%20one%20to%20learn%20from!%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWith%20App-V%2C%20I%20would%20just%20tick%20the%20box%20to%20give%20the%20user%20full%20control%20over%20VFS%20and%20move%20on%20without%20blinking%20an%20eye%20and%20App-V%20would%20take%20care%20of%20all%20the%20redirection.%26nbsp%3B%20I'm%20not%20sure%20if%20I'm%20following%20the%20right%20path%20to%20get%20this%20application%20up%20and%20running%20or%20if%20I'm%20of%20on%20an%20bad%20tangent.%20Docs%20are%20still%20rather%20slim%2C%20and%20most%20examples%20I%20see%20are%20for%20simple%20application%20(you%20know%2C%20those%20custom%20ones%20people%20wrote%20to%20show%20what%20you%20CAN%20do%20--%20thats%20always%20easy%20when%20you%20write%20the%20code!!).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20figured%20I'd%20shoot%20a%20message%20over%20here%20and%20see%20if%20I%20can%20kickstart%20my%20msix%20skills%20in%20the%20right%20direction.%26nbsp%3B%20Also%20would%20appreciate%20any%20recommendations%20for%20any%20active%20communities%20to%20poke%20around%20in.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%2C%20and%20I%20very%20much%20look%20forward%20to%20the%20conversation!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2153772%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%2C%20PSF%20Framework%20Questions%20coming%20from%20an%20App-V%20environment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2153772%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F126983%22%20target%3D%22_blank%22%3E%40Joe%20Robinson%3C%2FA%3E%26nbsp%3B%20Repackaging%20many%20apps%20are%20certainly%20more%20work%20with%20MSIX%20than%20with%20App-V.%26nbsp%3B%20But%20you%20can%20probably%20get%20there%20for%20many%20of%20the%20apps.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20my%20last%20round%20of%20testing%2C%20I%20did%20note%20that%20applications%20that%20installed%20into%20private%20directories%20like%20you%20mention%20are%20having%20problems%20with%20the%20FileRedirectionFixup.%26nbsp%3B%20I%20would%20recommend%20using%20a%20%22PVAD%22%20style%20installation%20until%20this%20gets%20looked%20into.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20also%20found%20another%20issue%20with%20the%20FRF%20that%20affects%20more%20kinds%20of%20packages%20which%20I%20just%20submitted%20a%20fix%20for.%26nbsp%3B%20This%20might%20be%20involved%20with%20your%20issues%20and%20will%20be%20included%20in%20the%20next%20version%20of%20PsfTooling%20soon%20(something%20more%20recent%20than%20the%20current%204.8).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20are%20many%20ways%20in%20which%20the%20application%20can%20determine%20what%20that%20installdir%20is.%26nbsp%3B%20I%20think%20we%20have%20most%20of%20them%20covered.%26nbsp%3B%20Do%20keep%20in%20mind%20that%20we%20often%20solve%20the%20initial%20issue%20with%20an%20app%20under%20MSIX%20only%20to%20find%20additional%20issues%2C%20so%20make%20sure%20you%20aren't%20fighting%20the%20wrong%20problem!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2165073%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%2C%20PSF%20Framework%20Questions%20coming%20from%20an%20App-V%20environment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2165073%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F126983%22%20target%3D%22_blank%22%3E%40Joe%20Robinson%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBogdan%2C%20from%20Advanced%20Installer%20here.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20noticed%20you%20had%20some%20problems%20when%20trying%20our%20packaging%20solution%20for%20your%20app.%20Can%20you%20share%20more%20details%20(what%20version%20of%20AI%20and%20what%20package%20did%20you%20converted)%3F%20In%20this%20thread%20or%20email%20me%20at%20%3CEM%3Ebogdan%20%3CSTRONG%3Edot%3C%2FSTRONG%3E%20mitrache%20%3CSTRONG%3Eat%3C%2FSTRONG%3E%20caphyon%20%3CSTRONG%3Edot%3C%2FSTRONG%3E%20com%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Greetings!

 

I am coming from an App-V environment.  Been using it for a long time and I've had great success with it.  I figured it's probably time I bit and started learning how to prepare my apps with MSIX before I its too late.

 

I am an app re-pacakger.  I take other peoples software and deploy it for my users, so I don't have the luxury to ask for code changes (you guys know, most companies would just laugh anyway).  I've read some astonishing numbers about the success of packaging, but quite frankly, outside of simple modern applications, I'm not having the luck I did with App-V.

 

I was wondering someone had some insight to share with me on how one would attack this application I'm working with.   The problem's I'm seeing are:

 

* Program installs to the C:\StencilCad Basic8.  It will let you change it, but I've found it's best not to.

* The program looks in <installdir> for an ini file to get the location of a database.  By default, this database is in the <installdir> (the path above).  

* Upon termination of the program, the application tries to write to a database in <installdir>.  I've looked at the inside of almost every file, and I can't find a location (like an ini file) I can change to move the file.

 

I started by just repackaging with MSIx Packaging Tool from microsoft.  Things seemed to go well until the obvious write issues were encountered.  Digging in, it looked the the PSF framework was the next step.  This seemed easy enough -- made my edits per the documentation on Microsoft.com and went on my way.  No change.  

 

I then stumbled across PSFTooling.  Rebuilt the vm, re-sequenced the app, and before "moving on", I fired up PSFTooling in advanced mode and ran the shortcut wizard.  I did have to selected the PVAD mode because, for some reason, it was detecting the installer as from the installshield components.  I also tried this method by specifying the install folder in the seuqncer per Tim's docs -- no go.

 

Poking around, I found Advanced Installer.  This looked great -- I could fire up exe and test it and apply fixes right in the packager.  This was even worse -- the application would never even start.  After fiddling a bit, I moved on.

 

I'm just not really sure where to go here.  I'm using this app as a learning example, as it seems to a pretty good one to learn from!  

 

With App-V, I would just tick the box to give the user full control over VFS and move on without blinking an eye and App-V would take care of all the redirection.  I'm not sure if I'm following the right path to get this application up and running or if I'm of on an bad tangent. Docs are still rather slim, and most examples I see are for simple application (you know, those custom ones people wrote to show what you CAN do -- thats always easy when you write the code!!).

 

I figured I'd shoot a message over here and see if I can kickstart my msix skills in the right direction.  Also would appreciate any recommendations for any active communities to poke around in.  

 

Thanks in advance, and I very much look forward to the conversation!

2 Replies

@Joe Robinson  Repackaging many apps are certainly more work with MSIX than with App-V.  But you can probably get there for many of the apps.

 

In my last round of testing, I did note that applications that installed into private directories like you mention are having problems with the FileRedirectionFixup.  I would recommend using a "PVAD" style installation until this gets looked into.

 

I also found another issue with the FRF that affects more kinds of packages which I just submitted a fix for.  This might be involved with your issues and will be included in the next version of PsfTooling soon (something more recent than the current 4.8).

 

There are many ways in which the application can determine what that installdir is.  I think we have most of them covered.  Do keep in mind that we often solve the initial issue with an app under MSIX only to find additional issues, so make sure you aren't fighting the wrong problem!

Hi @Joe Robinson,

 

Bogdan, from Advanced Installer here.

 

I noticed you had some problems when trying our packaging solution for your app. Can you share more details (what version of AI and what package did you converted)? In this thread or email me at bogdan dot mitrache at caphyon dot com