473,224 Members | 1,347 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,224 software developers and data experts.

Create Mac OSX DMG files from C# on Windows?


Does anyone have a suggestion for how to create a Mac OSX .DMG file
from a C# app running on Windows? Searching online is not turning up
a lot of options.

Or is there some better alternative format? We're looking for
something like a self extracting zip for mac? Problem with a plain
zip by itself is user would have to extract all the files somewhere to
run and have relative file references resolve properly.

Thanks,

Sam
------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.
Aug 14 '08 #1
4 5675
On Thu, 14 Aug 2008 09:27:59 -0700, Samuel R. Neff <sa********@nomail.com>
wrote:
Does anyone have a suggestion for how to create a Mac OSX .DMG file
from a C# app running on Windows? Searching online is not turning up
a lot of options.
There wouldn't be any built-in support for that. But assuming you can
manage writing the format explicitly yourself, of course .NET has the
FileStream and BinaryWriter classes that would be useful in doing that.

Of course, it begs the question: if you're targeting the Mac OS, why not
write your tool in Cocoa and run it on the Mac. But since you're here in
the C# newsgroup, I suppose you've already been through that and have
decided against it. :)

Pete
Aug 14 '08 #2
We're not targeting Mac entirely--only a small subset of users are on
the mac. We have an app that runs in ASP.NET on a Windows server and
would like to be able to serve up some files packaged together as a
dmg.

The spec for DMG is not available/public, so a custom writer is not
really feasible.

The only thing I've found is MagicISO which has a command line tool
that can create dmg's. However, they don't have a redistribution or
even volume license listed on their site so it may not be an option to
include that in an application.

Thanks,

Sam
On Thu, 14 Aug 2008 09:31:14 -0700, "Peter Duniho"
<Np*********@nnowslpianmk.comwrote:
>On Thu, 14 Aug 2008 09:27:59 -0700, Samuel R. Neff <sa********@nomail.com>
wrote:
>Does anyone have a suggestion for how to create a Mac OSX .DMG file
from a C# app running on Windows? Searching online is not turning up
a lot of options.

There wouldn't be any built-in support for that. But assuming you can
manage writing the format explicitly yourself, of course .NET has the
FileStream and BinaryWriter classes that would be useful in doing that.

Of course, it begs the question: if you're targeting the Mac OS, why not
write your tool in Cocoa and run it on the Mac. But since you're here in
the C# newsgroup, I suppose you've already been through that and have
decided against it. :)

Pete
------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.
Aug 14 '08 #3
On Aug 14, 9:02*pm, Samuel R. Neff <samueln...@nomail.comwrote:
We're not targeting Mac entirely--only a small subset of users are on
the mac. *We have an app that runs in ASP.NET on a Windows server and
would like to be able to serve up some files packaged together as a
dmg.

The spec for DMG is not available/public, so a custom writer is not
really feasible.
A .dmg file is just a snapshot of an HFS+ file system, which is
extensively documented by Apple itself:

http://developer.apple.com/technotes/tn/tn1150.html

Also, the actual HFS+-related code in Mac OS X seems to be included in
Darwin (http://developer.apple.com/opensource/), which is released
under a BSD-like license, so with some effort you could probably just
lift it from there, and either port it to VC++ and do a managed
wrapper in C++/CLI, or compile it on MinGW or Cygwin and access that
via P/Invoke.
Aug 14 '08 #4

Thanks for the corrections and info.

Sam
On Thu, 14 Aug 2008 10:24:14 -0700 (PDT), Pavel Minaev
<in****@gmail.comwrote:
>On Aug 14, 9:02*pm, Samuel R. Neff <samueln...@nomail.comwrote:
>We're not targeting Mac entirely--only a small subset of users are on
the mac. *We have an app that runs in ASP.NET on a Windows server and
would like to be able to serve up some files packaged together as a
dmg.

The spec for DMG is not available/public, so a custom writer is not
really feasible.

A .dmg file is just a snapshot of an HFS+ file system, which is
extensively documented by Apple itself:

http://developer.apple.com/technotes/tn/tn1150.html

Also, the actual HFS+-related code in Mac OS X seems to be included in
Darwin (http://developer.apple.com/opensource/), which is released
under a BSD-like license, so with some effort you could probably just
lift it from there, and either port it to VC++ and do a managed
wrapper in C++/CLI, or compile it on MinGW or Cygwin and access that
via P/Invoke.
------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.
Aug 14 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Viviana Vc | last post by:
How can I programatically do the equivalent of the following: cacls "C:\Program Files\test" /T /G Everyone:f ? Thanks, Viv
3
by: James Proctor | last post by:
Hi there, im brand new to ASP. Ive done loads of VB coding and one of my clients is intrested in a web based application, so im trying to play on and learn it a tad. However im comming across lots...
9
by: fishbaugher | last post by:
I have encountered some interesting crashes lately (Access97). Here is the symptom (after several days of different kinds of rebuilds including import and LoadFromText, all resulting in databases...
1
by: Iwan | last post by:
I have a speciffic task of which i do not know how to start on. The task is to create a virtual drive (like a ram drive og deamon tools). Through this drive files are to be saved and loaded like...
1
by: James Proctor | last post by:
Hi there, im brand new to ASP. Ive done loads of VB coding and one of my clients is intrested in a web based application, so im trying to play on and learn it a tad. However im comming across lots...
11
by: Andre | last post by:
Hi, I have ASP.NET application running on standalone (not part of the domain) Windows 2003. I use forms authentication for my application. The problem I have is that I need to create and read...
6
by: Rich | last post by:
Hello, I want to simulate the dynamic thumbnail display of Windows Explorer (winxp) on a form or pannel container. If I place a picture box on my container form/pannel and dimension it to the...
6
by: JonSteng | last post by:
..Net Visual Studio Professional 2003 Version 7.1.3088 ..Net Framework 1.1 SP1 Version 1.1.4322 IIS 5.1 Windows XP Professional SP2 Micron T3000 Laptop (1.5 GHz; 1GB RAM; 40GB HD with 17GB Free)...
2
by: Auddog | last post by:
Hello all, I'm fairly new to access database(s), but I work a lot with mysql. I was wondering if there is a script file out there that I can get a hold of that will create a dump file. I need...
3
by: sanghavi | last post by:
how to create a set up project in vb.net..how to run an application on a different machine
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.