Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] cant create installer #91

Closed
abdelaziz-mahdy opened this issue Feb 7, 2022 · 21 comments
Closed

[BUG] cant create installer #91

abdelaziz-mahdy opened this issue Feb 7, 2022 · 21 comments

Comments

@abdelaziz-mahdy
Copy link

abdelaziz-mahdy commented Feb 7, 2022

ℹ️ Info

Version: 2.8.16

💬 Description

cant create installer

✓ parsing cli arguments
✓ validating config values
✓ cleaning temporary files
✓ creating app icons folder
✓ generating icons
✓ copying app icons
✓ copying VC libraries
✓ getting certificate publisher
✓ generate appx manifest
❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚ 64% generate package resource indexing files..
Microsoft (R) MakePRI Tool
Copyright (C) 2013 Microsoft. All rights reserved.


Usage:
------
    MakePri.exe new /pr <project root> /cf <config file> [options]

Example:
--------
    MakePri.exe new /pr C:\MyApp\src\ /cf C:\MyApp\priconfig.xml /mn
    C:\MyApp\AppXManifest.xml /of C:\MyApp\src\resources.pri /o

Description:
------------
    Creates a PRI file at [outputfile] by indexing all files in the
    [projectroot]and its subdirectories as directed by the [configxml]. The
    index will be assigned [indexname] to reference resources in the application

Required Parameters:
--------------------
    /ProjectRoot(pr)  : <FOLDERPATH> Root location of project files
    /ConfigXml(cf)    : <FILEPATH> Configuration file location. Use
                        'Makepri.exe createconfig' command to generate one

Options:
--------
    /OutputFile(of)   : <FILEPATH> Output location of PRI file, default is
                        [current directory]\resources.pri
    /Manifest(mn)     : <FILEPATH> Location of the application or component's
                        manifest. This parameter is ignored if [indexname]
                        is given. Default is [projectroot]\AppXManifest.xml
    /IndexName(in)    : <STRING> Name for the generated index of resources.
                        Typically matches the AppX package name, class library
                        simple name, etc. May be supplied via the
                        [manifest] parameter.
                        If IndexName is not specified and an AppX manifest
                        file is not present, the default name 'Application'
                        will be used.
    /VersionMajor(vma): <INTEGER> [Deprecated] Major version number for
                        index, default is 1
    /IndexLog(il)     : <FILEPATH> XML Log of indexed resources, no file
                        generated by default
    /AutoMerge(am)    : This flag is not recommended for normal use with AppX
                        packages. It causes Makepri.exe to set the auto
                        merge flag within the PRI file. Default is not set.
    /ReverseMap(rm)   : Generate a reverse mapping section in the PRI file
                        which can be used for debugging purposes.
    /MappingFile(mf)  : <MAPPINGFILETYPE> Generate a mapping file in the given
                        file format.
    /SchemaFile(sf)   : <FILEPATH> Output location of XML resource schema
                        description.
    /IndexOptions(io) : <OPTIONS> Options to provide detailed control over
                        behavior of resource indexers.
    /Overwrite(o)     : Overwrite an existing output file of the same name
                        without prompting
    /Verbose(v)       : Causes verbose messages to be output to the console
    /Help(h, ?)       : Display the usage help text
    /ExtensionDll(ex) : <FILEPATH> Location of the MRT environment extension
                        DLL. This DLL must be signed by a Microsoft-issued
                        certificate. Default is an empty path (no DLL
                        will be used).


    FOLDERPATH       - is a valid path to a folder
    FILEPATH         - is a path to a file, either relative to the current
                       directory or absolute
    MAPPINGFILETYPE  - Supported File type(s): 'AppX'



ERROR: PRI191: 0x80004005 - Appx manifest not found or is invalid. Please ensure well-formed manifest file is present. Or specify an index name with /in switch.
A name was started with an invalid character.


pub finished with exit code -1

📜 Pubspec.yaml

version: 3.0.178+1


environment:
  sdk: ">=2.15.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  get: ^4.1.4
  catcher: ^0.6.6
  sqflite: ^2.0.0+3
  async: ^2.6.1
  win32: ^2.2.9
  xpath_selector: ^2.2.2
  cryptography: ^2.0.5
  #video player
  volume_controller: ^2.0.2

  shared_preferences: ^2.0.13

    #flutter_vlc_player:
  #vlc_flutter:
    #git: https://github.com/zezo357/vlc-flutter
  video_player: ^2.2.18
  auto_orientation: ^2.0.2
  screen_brightness: ^0.1.1
  flutter_meedu: ^5.0.0
  flutter_spinkit: ^5.0.0
  meta: ^1.3.0
  dart_vlc: ^0.1.7
  share_plus: ^3.0.4

  window_manager: ^0.1.1
  screen_retriever: ^0.1.0
  oktoast: ^3.1.3+1

  #end of video player
  flutter_screenutil: "5.0.2"
  connectivity_plus: ^2.0.1
  path: ^1.8.0
  cached_network_image: ^3.0.0
  wakelock: ^0.6.1
  retry: ^3.1.0
  version: ^2.0.0
  permission_handler: ^8.1.1
  filesize: ^2.0.1
  fluttertoast: ^8.0.7
  helpers: ^1.1.3
  dio: ^4.0.0
  flutter_local_notifications: ^9.0.0
  queue: ^3.1.0
  hotkey_manager: ^0.1.2
  archive: ^3.1.6

  android_intent: ^2.0.2
  device_apps: ^2.1.1
  html: ^0.15.0
  file_picker: ^4.0.0
  workmanager: ^0.5.0-dev.8

  pull_to_refresh: ^2.0.0
  encrypt: ^5.0.0
  draggable_scrollbar: ^0.1.0
  auto_size_text: ^3.0.0-nullsafety.0
  intl: ^0.17.0
  fluttericon:
  android_path_provider: ^0.3.0
  open_file:
  collection: ^1.15.0-nullsafety.4
  liquid_progress_indicator: ^0.4.0
  menu_button: ^1.4.2+1
  sqflite_common_ffi:
  xml: ^5.3.1
  google_nav_bar: ^5.0.5

  #flutter_webview_plugin:
    #git: https://github.com/zezo357/flutter_webview_plugin

dev_dependencies:
  flutter_native_splash: ^2.0.1+1
  flutter_launcher_icons: ^0.9.0
  #msix: ^3.0.0-dev.1
  msix: ^2.8.16


  flutter_test:
    sdk: flutter
flutter_icons:
  android: "launcher_icon"
  windows: true
  ios: true
  image_path: "assets/icon.png"

msix_config:
  display_name: AnimeHere
  publisher_display_name: abdelaziz
  identity_name: com.zcreations.AnimeHere
  msix_version: 1.0.0.0
  logo_path:  G:\My Work HDD2\AndroidStudioProjects\anime_here\windows\runner\resources\app_icon.ico
  start_menu_icon_path: G:\My Work HDD2\AndroidStudioProjects\anime_here\windows\runner\resources\app_icon.ico
  tile_icon_path: G:\My Work HDD2\AndroidStudioProjects\anime_here\windows\runner\resources\app_icon.ico


@YehudaKremer
Copy link
Owner

Hello

I'm trying to figure out what the source of the problem is,
can you please try again without the all msix_config: section

@abdelaziz-mahdy
Copy link
Author

@YehudaKremer
this is the output without the msix_config

✓ parsing cli arguments
✓ validating config values
✓ cleaning temporary files
✓ creating app icons folder
✓ copying app icons
✓ copying VC libraries
✓ getting certificate publisher
✓ generate appx manifest
❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚ 61% generate package resource indexing files..
Microsoft (R) MakePRI Tool
Copyright (C) 2013 Microsoft. All rights reserved.


Usage:
------
    MakePri.exe new /pr <project root> /cf <config file> [options]

Example:
--------
    MakePri.exe new /pr C:\MyApp\src\ /cf C:\MyApp\priconfig.xml /mn
    C:\MyApp\AppXManifest.xml /of C:\MyApp\src\resources.pri /o

Description:
------------
    Creates a PRI file at [outputfile] by indexing all files in the
    [projectroot]and its subdirectories as directed by the [configxml]. The
    index will be assigned [indexname] to reference resources in the application

Required Parameters:
--------------------
    /ProjectRoot(pr)  : <FOLDERPATH> Root location of project files
    /ConfigXml(cf)    : <FILEPATH> Configuration file location. Use
                        'Makepri.exe createconfig' command to generate one

Options:
--------
    /OutputFile(of)   : <FILEPATH> Output location of PRI file, default is
                        [current directory]\resources.pri
    /Manifest(mn)     : <FILEPATH> Location of the application or component's
                        manifest. This parameter is ignored if [indexname]
                        is given. Default is [projectroot]\AppXManifest.xml
    /IndexName(in)    : <STRING> Name for the generated index of resources.
                        Typically matches the AppX package name, class library
                        simple name, etc. May be supplied via the
                        [manifest] parameter.
                        If IndexName is not specified and an AppX manifest
                        file is not present, the default name 'Application'
                        will be used.
    /VersionMajor(vma): <INTEGER> [Deprecated] Major version number for
                        index, default is 1
    /IndexLog(il)     : <FILEPATH> XML Log of indexed resources, no file
                        generated by default
    /AutoMerge(am)    : This flag is not recommended for normal use with AppX
                        packages. It causes Makepri.exe to set the auto
                        merge flag within the PRI file. Default is not set.
    /ReverseMap(rm)   : Generate a reverse mapping section in the PRI file
                        which can be used for debugging purposes.
    /MappingFile(mf)  : <MAPPINGFILETYPE> Generate a mapping file in the given
                        file format.
    /SchemaFile(sf)   : <FILEPATH> Output location of XML resource schema
                        description.
    /IndexOptions(io) : <OPTIONS> Options to provide detailed control over
                        behavior of resource indexers.
    /Overwrite(o)     : Overwrite an existing output file of the same name
                        without prompting
    /Verbose(v)       : Causes verbose messages to be output to the console
    /Help(h, ?)       : Display the usage help text
    /ExtensionDll(ex) : <FILEPATH> Location of the MRT environment extension
                        DLL. This DLL must be signed by a Microsoft-issued
                        certificate. Default is an empty path (no DLL
                        will be used).


    FOLDERPATH       - is a valid path to a folder
    FILEPATH         - is a path to a file, either relative to the current
                       directory or absolute
    MAPPINGFILETYPE  - Supported File type(s): 'AppX'



ERROR: PRI191: 0x80004005 - Appx manifest not found or is invalid. Please ensure well-formed manifest file is present. Or specify an index name with /in switch.
A name was started with an invalid character.


pub finished with exit code -1

@YehudaKremer
Copy link
Owner

can you please paste here the content of \build\windows\runner\Release\AppxManifest.xml

@abdelaziz-mahdy
Copy link
Author

abdelaziz-mahdy commented Feb 7, 2022

  <Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" 
          xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" 
          xmlns:uap2="http://schemas.microsoft.com/appx/manifest/uap/windows10/2" 
          xmlns:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3" 
          xmlns:uap4="http://schemas.microsoft.com/appx/manifest/uap/windows10/4" 
          xmlns:uap6="http://schemas.microsoft.com/appx/manifest/uap/windows10/6" 
          xmlns:uap7="http://schemas.microsoft.com/appx/manifest/uap/windows10/7" 
          xmlns:uap8="http://schemas.microsoft.com/appx/manifest/uap/windows10/8" 
          xmlns:uap10="http://schemas.microsoft.com/appx/manifest/uap/windows10/10" 
          xmlns:iot="http://schemas.microsoft.com/appx/manifest/iot/windows10" 
          xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10" 
          xmlns:desktop2="http://schemas.microsoft.com/appx/manifest/desktop/windows10/2" 
          xmlns:desktop6="http://schemas.microsoft.com/appx/manifest/desktop/windows10/6" 
          xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" 
          xmlns:rescap3="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities/3" 
          xmlns:rescap6="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities/6" 
          xmlns:com="http://schemas.microsoft.com/appx/manifest/com/windows10" 
          xmlns:com2="http://schemas.microsoft.com/appx/manifest/com/windows10/2" 
          xmlns:com3="http://schemas.microsoft.com/appx/manifest/com/windows10/3" 
          IgnorableNamespaces="uap3 desktop">
    <Identity Name="com.flutter.animehere" Version="1.0.0.0"
              Publisher="CN=Msix Testing, O=Msix Testing Corporation, S=Some-State, C=US" ProcessorArchitecture="x64" />
    <Properties>
      <DisplayName>animehere</DisplayName>
      <PublisherDisplayName>com.flutter.animehere</PublisherDisplayName>
      <Logo>Images\StoreLogo.png</Logo>
      <Description>Watch anime without ads <3</Description>
    </Properties>
    <Resources>
      <Resource Language="en-us" />
    </Resources>
    <Dependencies>
      <TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19042.630" />
    </Dependencies>
    <Capabilities>
      <Capability Name="internetClient" />
      <rescap:Capability Name="runFullTrust" />
      <DeviceCapability Name="location" />
      <DeviceCapability Name="microphone" />
      <DeviceCapability Name="webcam" />
    </Capabilities>
    <Applications>
      <Application Id="animehere" Executable="anime_here.exe" EntryPoint="Windows.FullTrustApplication">
        <uap:VisualElements BackgroundColor="transparent"
          DisplayName="animehere" Square150x150Logo="Images\Square150x150Logo.png"
          Square44x44Logo="Images\Square44x44Logo.png" Description="Watch anime without ads <3">
          <uap:DefaultTile ShortName="animehere" Square310x310Logo="Images\LargeTile.png"
          Square71x71Logo="Images\SmallTile.png" Wide310x150Logo="Images\Wide310x150Logo.png">
            <uap:ShowNameOnTiles>
              <uap:ShowOn Tile="square150x150Logo"/>
              <uap:ShowOn Tile="square310x310Logo"/>
              <uap:ShowOn Tile="wide310x150Logo"/>
            </uap:ShowNameOnTiles>
          </uap:DefaultTile>
          <uap:SplashScreen Image="Images\SplashScreen.png"/>
          <uap:LockScreen BadgeLogo="Images\BadgeLogo.png" Notification="badge"/>
        </uap:VisualElements>
          </Application>
    </Applications>
  </Package>

@YehudaKremer
Copy link
Owner

Thank you!
Checking...

YehudaKremer added a commit that referenced this issue Feb 7, 2022
@YehudaKremer
Copy link
Owner

I think i found the problem, can you please try version 2.8.17

@abdelaziz-mahdy
Copy link
Author

ok will try it now

@abdelaziz-mahdy
Copy link
Author

i guess its working?

✓ parsing cli arguments
✓ validating config values
✓ cleaning temporary files
✓ creating app icons folder
✓ copying app icons
✓ copying VC libraries
✓ getting certificate publisher
✓ generate appx manifest
✓ generate package resource indexing files
✓ packing
✓ cleaning temporary files
❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚ 84% installing certificate..
To install the test certificate run the command "flutter pub run msix:create" as administrator
pub finished with exit code -1

@YehudaKremer
Copy link
Owner

yes this is normal, its will install the test certificate automatic on your pc,
but its need to run as admin

in version 3.0 its much easy, do you want to try is? if so ,i will publish new version 3.0.0-dev.2 for you

@abdelaziz-mahdy
Copy link
Author

would love that

thanks ♥

@YehudaKremer
Copy link
Owner

okay wait a minute

@YehudaKremer
Copy link
Owner

okay, can you please try version 3.0.0-dev.2

@abdelaziz-mahdy
Copy link
Author

it worked thanks ♥

@YehudaKremer
Copy link
Owner

Great!!

did you get the admin dialog? after that are you able to install the msix file?

@abdelaziz-mahdy
Copy link
Author

admin dialog? in console?

@YehudaKremer
Copy link
Owner

YehudaKremer commented Feb 7, 2022

yes, but after choosing "Yes" in the console, you got windows dialog.. ?

@YehudaKremer
Copy link
Owner

like this:
image

@abdelaziz-mahdy
Copy link
Author

abdelaziz-mahdy commented Feb 7, 2022

i didnt choose yes?

rerunning the code to get the output to you

Building with sound null safety
Building Windows application...
creating msix installer...             20.7s
msix created: build\windows\runner\Release\anime_here.msix

Waiting for  995 seconds, press a key to continue ...



@abdelaziz-mahdy
Copy link
Author

btw when sending updates should i change the msix version?

@YehudaKremer
Copy link
Owner

yes, lets day the your current version is 1.0.0.0, then change it to 1.0.1.0 and create new msix installer.

thanks you for reporting those bugs, it's very helpful!
if you have any more problems please let me know

@abdelaziz-mahdy
Copy link
Author

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants