473,503 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5722
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
3274
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
2646
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
4477
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
2263
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
3389
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
3045
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
4729
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
3348
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
5770
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
3914
by: sanghavi | last post by:
how to create a set up project in vb.net..how to run an application on a different machine
0
7194
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7070
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6976
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5566
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
729
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.