Is it possible to build a portable executable? #9332
-
Like the title says, is it possible to build a portable executable using RNW? I am aware you can make a standalone one where you create a APPX package, but I would much rather prefer a portable executable. Is this possible? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
RNW apps are UWP apps by default. There are some considerations to that for sure (https://microsoft.github.io/react-native-windows/docs/native-code#win32-desktop-apps-vs-rnw-apps), including the fact that UWP apps aren't single EXEs and have a totally different packaging model. It's possible to add RNW to a classic Win32 app in an "island". You can find some info on that here: microsoft/react-native-windows-samples#540. There may be additional considerations if you're looking to make a single file EXE with everything bundled together, not sure about that. |
Beta Was this translation helpful? Give feedback.
-
@chrisglein This is a prescriptive requirement for many large customers of mine. Is there any hope to see classic deployment? This is a huge restriction that won't ever be accepted (they are more willing to convert to a web application rather than changing this decision). |
Beta Was this translation helpful? Give feedback.
RNW apps are UWP apps by default. There are some considerations to that for sure (https://microsoft.github.io/react-native-windows/docs/native-code#win32-desktop-apps-vs-rnw-apps), including the fact that UWP apps aren't single EXEs and have a totally different packaging model.
It's possible to add RNW to a classic Win32 app in an "island". You can find some info on that here: microsoft/react-native-windows-samples#540. There may be additional considerations if you're looking to make a single file EXE with everything bundled together, not sure about that.